public class ReadArrayBuffer extends StaticArrayBuffer implements ReadBuffer
ReadBuffer against a byte array.
Note, that the position does not impact the state of the object. Meaning, equals, hashcode,
and compare ignore the position.StaticBuffer.Factory<T>BYTE_LEN, CHAR_LEN, DOUBLE_LEN, FLOAT_LEN, INT_LEN, LONG_LEN, SHORT_LENARRAY_FACTORY, BB_FACTORY, STATIC_FACTORY| Modifier | Constructor and Description |
|---|---|
|
ReadArrayBuffer(byte[] array) |
protected |
ReadArrayBuffer(byte[] array,
int offset,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
asRelative(StaticBuffer.Factory<T> factory) |
boolean |
getBoolean() |
byte |
getByte() |
byte[] |
getBytes(int length) |
char |
getChar() |
char[] |
getChars(int length) |
double |
getDouble() |
double[] |
getDoubles(int length) |
float |
getFloat() |
float[] |
getFloats(int length) |
int |
getInt() |
int[] |
getInts(int length) |
long |
getLong() |
long[] |
getLongs(int length) |
int |
getPosition() |
short |
getShort() |
short[] |
getShorts(int length) |
boolean |
hasRemaining() |
void |
movePositionTo(int newPosition) |
ReadBuffer |
subrange(int length,
boolean invert) |
as, as, asByteBuffer, asReadBuffer, compareTo, compareTo, compareTo, compareTo, equals, getBoolean, getByte, getBytes, getChar, getChars, getDouble, getDoubles, getFloat, getFloats, getInt, getInt, getInts, getLong, getLong, getLongs, getShort, getShorts, hashCode, hashCode, length, of, of, putInt, putLong, subrange, subrange, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitas, asByteBuffer, asReadBuffer, getBoolean, getByte, getBytes, getChar, getChars, getDouble, getDoubles, getFloat, getFloats, getInt, getInts, getLong, getLongs, getShort, getShorts, length, subrange, subrangecompareTopublic ReadArrayBuffer(byte[] array)
protected ReadArrayBuffer(byte[] array,
int offset,
int limit)
public int getPosition()
getPosition in interface ReadBufferpublic boolean hasRemaining()
hasRemaining in interface ScanBufferpublic void movePositionTo(int newPosition)
movePositionTo in interface ReadBufferpublic byte getByte()
getByte in interface ScanBufferpublic boolean getBoolean()
getBoolean in interface ScanBufferpublic short getShort()
getShort in interface ScanBufferpublic int getInt()
getInt in interface ScanBufferpublic long getLong()
getLong in interface ScanBufferpublic char getChar()
getChar in interface ScanBufferpublic float getFloat()
getFloat in interface ScanBufferpublic double getDouble()
getDouble in interface ScanBufferpublic byte[] getBytes(int length)
getBytes in interface ScanBufferpublic short[] getShorts(int length)
getShorts in interface ScanBufferpublic int[] getInts(int length)
getInts in interface ScanBufferpublic long[] getLongs(int length)
getLongs in interface ScanBufferpublic char[] getChars(int length)
getChars in interface ScanBufferpublic float[] getFloats(int length)
getFloats in interface ScanBufferpublic double[] getDoubles(int length)
getDoubles in interface ScanBufferpublic <T> T asRelative(StaticBuffer.Factory<T> factory)
asRelative in interface ReadBufferpublic ReadBuffer subrange(int length, boolean invert)
subrange in interface ReadBufferCopyright © 2012–2015. All rights reserved.