public final class MemoryLongByteBuffer extends AbstractLongByteBuffer
Implementation of a LongByteBuffer which is backed by a byte array in memory. Somewhat at odds
with the goal of LongByteBuffer since it cannot hold more than a Integer.MAX_VALUE number
of bytes, but it's the best strategy for a memory based buffer.
mReaderIndex, mWriterIndex| Modifier and Type | Method and Description |
|---|---|
protected void |
_dispose() |
protected byte |
_getByte(long theIndex) |
protected double |
_getDouble(long theIndex) |
protected float |
_getFloat(long theIndex) |
protected int |
_getInt(long theIndex) |
protected long |
_getLong(long theIndex) |
protected short |
_getShort(long theIndex) |
protected void |
_setByte(long theIndex,
byte theValue) |
protected void |
_setDouble(long theIndex,
double theValue) |
protected void |
_setFloat(long theIndex,
float theValue) |
protected void |
_setInt(long theIndex,
int theValue) |
protected void |
_setLong(long theIndex,
long theValue) |
protected void |
_setShort(long theIndex,
short theValue) |
byte[] |
array() |
LongByteBuffer |
copy(long theIndex,
long theLength) |
void |
getBytes(long theIndex,
byte[] theBytes,
int theOffset,
int theLength) |
void |
getBytes(long theIndex,
LongByteBuffer theBytes,
int theLength) |
LongByteBuffer |
setBytes(long theIndex,
byte[] theBytes,
int theOffset,
int theLength) |
LongByteBuffer |
setBytes(long theIndex,
LongByteBuffer theBytes,
long theLength) |
LongByteBuffer |
slice(long theIndex,
long theLength) |
assertCanRead, assertCanWrite, assertIndexes, assertValidIndex, capacity, clear, copy, dispose, ensureAccessible, getByte, getBytes, getChar, getDouble, getFloat, getInt, getLong, getShort, readableBytes, readByte, readBytes, readBytes, readBytes, readChar, readDouble, readerIndex, readerIndex, readFloat, readInt, readLong, readShort, setByte, setBytes, setBytes, setChar, setDouble, setFloat, setInt, setLong, setShort, setZero, writableBytes, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeDouble, writeFloat, writeInt, writeLong, writerIndex, writerIndex, writeShortpublic byte[] array()
public LongByteBuffer copy(long theIndex, long theLength)
public LongByteBuffer slice(long theIndex, long theLength)
protected void _dispose()
_dispose in class AbstractLongByteBufferpublic void getBytes(long theIndex,
byte[] theBytes,
int theOffset,
int theLength)
public void getBytes(long theIndex,
LongByteBuffer theBytes,
int theLength)
public LongByteBuffer setBytes(long theIndex, byte[] theBytes, int theOffset, int theLength)
public LongByteBuffer setBytes(long theIndex, LongByteBuffer theBytes, long theLength)
protected int _getInt(long theIndex)
_getInt in class AbstractLongByteBufferprotected double _getDouble(long theIndex)
_getDouble in class AbstractLongByteBufferprotected float _getFloat(long theIndex)
_getFloat in class AbstractLongByteBufferprotected long _getLong(long theIndex)
_getLong in class AbstractLongByteBufferprotected short _getShort(long theIndex)
_getShort in class AbstractLongByteBufferprotected byte _getByte(long theIndex)
_getByte in class AbstractLongByteBufferprotected void _setLong(long theIndex,
long theValue)
_setLong in class AbstractLongByteBufferprotected void _setDouble(long theIndex,
double theValue)
_setDouble in class AbstractLongByteBufferprotected void _setFloat(long theIndex,
float theValue)
_setFloat in class AbstractLongByteBufferprotected void _setInt(long theIndex,
int theValue)
_setInt in class AbstractLongByteBufferprotected void _setShort(long theIndex,
short theValue)
_setShort in class AbstractLongByteBufferprotected void _setByte(long theIndex,
byte theValue)
_setByte in class AbstractLongByteBufferCopyright © 2010-2016 Stardog Union. All Rights Reserved.