Package com.aparapi.internal.reader
Class ByteBuffer
- java.lang.Object
-
- com.aparapi.internal.reader.ByteBuffer
-
public class ByteBuffer extends java.lang.ObjectUsed 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 aByteReader- See Also:
ByteReader
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]bytes
-
Constructor Summary
Constructors Constructor Description ByteBuffer(byte[] _bytes)ByteBuffer(java.io.InputStream _inputStream)Construct from anInputStream
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (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) java.lang.Stringutf8(int _offset)(package private) intutf8bytes(int _offset)
-
-
-
Method Detail
-
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
java.lang.String utf8(int _offset)
-
b
byte b(int _offset)
-
-