Add BdfReader methods for 32-bit ints.

We use these a lot so it's convenient to have built-in support.

Also make BdfReaderImpl and BdfWriterImpl final to enable compiler optimisations.
This commit is contained in:
akwizgran
2023-02-18 15:52:04 +00:00
parent ac8a4db457
commit 7a854e70cb
4 changed files with 57 additions and 3 deletions

View File

@@ -32,6 +32,12 @@ public interface BdfReader {
void skipLong() throws IOException;
boolean hasInt() throws IOException;
int readInt() throws IOException;
void skipInt() throws IOException;
boolean hasDouble() throws IOException;
double readDouble() throws IOException;