|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IByteArrayBuffer
An interface for reading from and accessing a managed byte[]. Implementations of this interface may permit transparent extension of the managed byte[].
| Method Summary | |
|---|---|
byte[] |
array()
The backing byte[] WILL be transparently replaced if the buffer capacity is extended. |
int |
capacity()
The capacity of the buffer. |
int |
len()
The length of the slice is always the capacity of the backing byte[]. |
int |
limit()
The read limit (there is no write limit on the buffer since the capacity will be automatically extended on overflow). |
int |
off()
The offset of the slice into the backing byte[] is always zero. |
int |
pos()
The current position in the buffer. |
int |
remaining()
The #of bytes remaining in the buffer before it would overflow. |
| Methods inherited from interface com.bigdata.io.IDataRecord |
|---|
asByteBuffer, get, get, getBit, getByte, getDouble, getFloat, getInt, getLong, getShort, put, put, putByte, putDouble, putFloat, putInt, putLong, putShort, setBit, slice, toByteArray |
| Method Detail |
|---|
byte[] array()
array in interface IByteArraySliceint off()
IByteArraySlice.array().
off in interface IByteArraySliceint len()
IByteArraySlice.array().
len in interface IByteArraySliceint capacity()
int pos()
Note: The method name was choose to avoid a collision with
RepositionableStream.position().
int limit()
int remaining()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||