static class FontFileReader.Buffer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) byte[] |
data |
(package private) int |
orig |
(package private) int |
pos |
Constructor and Description |
---|
Buffer(byte[] data,
int bufStart) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
capacity() |
(package private) byte |
get() |
(package private) byte |
get(int tpos) |
(package private) void |
get(int startPos,
byte[] dest,
int destPos,
int destLen) |
(package private) char |
getChar() |
(package private) char |
getChar(int tpos) |
(package private) int |
getInt() |
(package private) int |
getInt(int tpos) |
(package private) short |
getShort() |
(package private) short |
getShort(int tpos) |
(package private) void |
position(int newPos) |
(package private) void |
skip(int nbytes) |
Buffer(byte[] data, int bufStart)
data
- the bufferbufStart
- the starting position within the data array.
pos
is considered to be the start of this Buffer object.
There is no protection against reading past the end, caller is
assumed to be careful.int getInt(int tpos)
int getInt()
short getShort(int tpos)
short getShort()
char getChar(int tpos)
char getChar()
void position(int newPos)
int capacity()
byte get()
byte get(int tpos)
void skip(int nbytes)
void get(int startPos, byte[] dest, int destPos, int destLen)