Package com.aparapi.internal.reader
Class ByteBuffer
- java.lang.Object
-
- com.aparapi.internal.reader.ByteBuffer
-
public class ByteBuffer extends java.lang.Object
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 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) byte
b(int _offset)
(package private) byte[]
bytes(int _offset, int _length)
(package private) double
d8(int _offset)
(package private) float
f4(int _offset)
(package private) int
s2(int _offset)
(package private) int
s4(int _offset)
(package private) int
size()
(package private) int
u1(int _offset)
(package private) int
u2(int _offset)
(package private) int
u4(int _offset)
(package private) long
u8(int _offset)
(package private) java.lang.String
utf8(int _offset)
(package private) int
utf8bytes(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)
-
-