Package com.aparapi.internal.reader
Class ByteBuffer
java.lang.Object
com.aparapi.internal.reader.ByteBuffer
Used to parse ClassFile structure.
Provides low level access to sequential bytes in a stream given a specific offset. Does not keep track of accesses. For this you will need a
Provides low level access to sequential bytes in a stream given a specific offset. Does not keep track of accesses. For this you will need a
ByteReader- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionByteBuffer(byte[] _bytes) ByteBuffer(InputStream _inputStream) Construct from anInputStream -
Method Summary
Modifier and TypeMethodDescription(package private) byteb(int _offset) (package private) byte[]bytes(int _offset, int _length) (package private) doubled8(int _offset) (package private) floatf4(int _offset) (package private) ints2(int _offset) (package private) ints4(int _offset) (package private) intsize()(package private) intu1(int _offset) (package private) intu2(int _offset) (package private) intu4(int _offset) (package private) longu8(int _offset) (package private) Stringutf8(int _offset) (package private) intutf8bytes(int _offset)
-
Field Details
-
bytes
private byte[] bytes
-
-
Constructor Details
-
ByteBuffer
ByteBuffer(InputStream _inputStream) Construct from anInputStream- Parameters:
_inputStream-
-
ByteBuffer
ByteBuffer(byte[] _bytes)
-
-
Method Details
-
u2
int u2(int _offset) -
s2
int s2(int _offset) -
u4
int u4(int _offset) -
s4
int s4(int _offset) -
u1
int u1(int _offset) -
size
int size() -
d8
double d8(int _offset) -
f4
float f4(int _offset) -
u8
long u8(int _offset) -
utf8bytes
int utf8bytes(int _offset) -
bytes
byte[] bytes(int _offset, int _length) -
utf8
-
b
byte b(int _offset)
-