public final class BinaryHeapInputStream extends BinaryAbstractInputStream
lenBYTE_ONE, BYTE_ZERO, pos| Constructor and Description |
|---|
BinaryHeapInputStream(byte[] data)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
array() |
byte[] |
arrayCopy() |
int |
capacity() |
BinaryHeapInputStream |
copy() |
protected void |
copyAndShift(Object target,
long off,
int len)
Copy data to target object shift position afterwards.
|
static BinaryHeapInputStream |
create(byte[] data,
int pos)
Create stream with pointer set at the given position.
|
boolean |
hasArray() |
protected byte |
readByteAndShift()
Read next byte from the stream and perform shift.
|
protected byte |
readBytePositioned0(int pos)
Internal routine for positioned byte value read.
|
protected char |
readCharFast()
Read char value (fast path).
|
protected int |
readIntFast()
Read int value (fast path).
|
protected int |
readIntPositioned0(int pos)
Internal routine for positioned int value read.
|
protected long |
readLongFast()
Read long value (fast path).
|
protected short |
readShortFast()
Read short value (fast path).
|
protected short |
readShortPositioned0(int pos)
Internal routine for positioned short value read.
|
int |
remaining()
Gets amount of remaining data in bytes.
|
byte[] |
resize(int len)
Method called from JNI to resize stream.
|
ensureEnoughData, offheapPointer, position, rawOffheapPointer, read, readBoolean, readBooleanArray, readByte, readByteArray, readBytePositioned, readChar, readCharArray, readDouble, readDoubleArray, readFloat, readFloatArray, readInt, readIntArray, readIntPositioned, readLong, readLongArray, readShort, readShortArray, readShortPositionedposition, shiftclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpositionpublic BinaryHeapInputStream(byte[] data)
data - Data.public static BinaryHeapInputStream create(byte[] data, int pos)
data - Data.pos - Position.public BinaryHeapInputStream copy()
public byte[] resize(int len)
len - Required length.public int remaining()
public int capacity()
public byte[] array()
public byte[] arrayCopy()
public boolean hasArray()
True is stream is array based.protected byte readByteAndShift()
readByteAndShift in class BinaryAbstractInputStreamprotected void copyAndShift(Object target, long off, int len)
copyAndShift in class BinaryAbstractInputStreamtarget - Target.off - Offset.len - Length.protected short readShortFast()
readShortFast in class BinaryAbstractInputStreamprotected char readCharFast()
readCharFast in class BinaryAbstractInputStreamprotected int readIntFast()
readIntFast in class BinaryAbstractInputStreamprotected long readLongFast()
readLongFast in class BinaryAbstractInputStreamprotected byte readBytePositioned0(int pos)
readBytePositioned0 in class BinaryAbstractInputStreampos - Position.protected short readShortPositioned0(int pos)
readShortPositioned0 in class BinaryAbstractInputStreampos - Position.protected int readIntPositioned0(int pos)
readIntPositioned0 in class BinaryAbstractInputStreampos - Position.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.8.0 Release Date : February 27 2020