public final class DrillBuf extends io.netty.buffer.AbstractByteBuf implements AutoCloseable
Modifier and Type | Class and Description |
---|---|
class |
DrillBuf.TransferResult
The outcome of a Transfer.
|
Modifier and Type | Field and Description |
---|---|
static int |
INT_NUM_BYTES
Number of bytes in an int
|
static int |
LONG_NUM_BYTES
Number of bytes in a long
|
static int |
SHORT_NUM_BYTES
Number of bytes in a short
|
Constructor and Description |
---|
DrillBuf(AtomicInteger refCnt,
AllocationManager.BufferLedger ledger,
UnsafeDirectLittleEndian byteBuf,
BufferManager manager,
io.netty.buffer.ByteBufAllocator alloc,
int offset,
int length,
boolean isEmpty) |
Modifier and Type | Method and Description |
---|---|
protected byte |
_getByte(int index) |
protected int |
_getInt(int index) |
protected int |
_getIntLE(int index) |
protected long |
_getLong(int index) |
protected long |
_getLongLE(int index) |
protected short |
_getShort(int index) |
protected short |
_getShortLE(int index) |
protected int |
_getUnsignedMedium(int index) |
protected int |
_getUnsignedMediumLE(int index) |
protected void |
_setByte(int index,
int value) |
protected void |
_setInt(int index,
int value) |
protected void |
_setIntLE(int index,
int value) |
protected void |
_setLong(int index,
long value) |
protected void |
_setLongLE(int index,
long value) |
protected void |
_setMedium(int index,
int value) |
protected void |
_setMediumLE(int index,
int value) |
protected void |
_setShort(int index,
int value) |
protected void |
_setShortLE(int index,
int value) |
long |
addr() |
io.netty.buffer.ByteBufAllocator |
alloc() |
byte[] |
array() |
int |
arrayOffset() |
static String |
bufferState(io.netty.buffer.ByteBuf buf) |
int |
capacity() |
DrillBuf |
capacity(int newCapacity) |
void |
close() |
io.netty.buffer.ByteBuf |
copy() |
io.netty.buffer.ByteBuf |
copy(int index,
int length) |
DrillBuf |
duplicate() |
boolean |
equals(Object obj) |
int |
getActualMemoryConsumed()
Return that is Accounted for by this buffer (and its potentially shared siblings within the context of the
associated allocator).
|
byte |
getByte(int index) |
io.netty.buffer.ByteBuf |
getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
io.netty.buffer.ByteBuf |
getBytes(int index,
ByteBuffer dst) |
io.netty.buffer.ByteBuf |
getBytes(int index,
io.netty.buffer.ByteBuf dst,
int dstIndex,
int length) |
int |
getBytes(int index,
FileChannel out,
long position,
int length) |
int |
getBytes(int index,
GatheringByteChannel out,
int length) |
io.netty.buffer.ByteBuf |
getBytes(int index,
OutputStream out,
int length) |
char |
getChar(int index) |
double |
getDouble(int index) |
float |
getFloat(int index) |
long |
getId()
Get the integer id assigned to this DrillBuf for debugging purposes.
|
static int |
getInt(byte[] data,
int index) |
int |
getInt(int index) |
int |
getIntLE(int index) |
AllocationManager.BufferLedger |
getLedger()
Visible only for memory allocation calculations.
|
static long |
getLong(byte[] data,
int index) |
long |
getLong(int index) |
long |
getLongLE(int index) |
int |
getPossibleMemoryConsumed()
Returns the possible memory consumed by this DrillBuf in the worse case scenario.
|
static short |
getShort(byte[] data,
int index) |
short |
getShort(int index) |
short |
getShortLE(int index) |
long |
getUnsignedInt(int index) |
int |
getUnsignedMedium(int index) |
int |
getUnsignedMediumLE(int index) |
int |
getUnsignedShort(int index) |
boolean |
hasArray() |
int |
hashCode() |
boolean |
hasMemoryAddress() |
ByteBuffer |
internalNioBuffer(int index,
int length) |
boolean |
isDirect() |
long |
memoryAddress() |
ByteBuffer |
nioBuffer() |
ByteBuffer |
nioBuffer(int index,
int length) |
int |
nioBufferCount() |
ByteBuffer[] |
nioBuffers() |
ByteBuffer[] |
nioBuffers(int index,
int length) |
ByteOrder |
order() |
io.netty.buffer.ByteBuf |
order(ByteOrder endianness) |
void |
print(StringBuilder sb,
int indent,
BaseAllocator.Verbosity verbosity) |
static void |
putInt(byte[] src,
int srcIndex,
byte[] dest,
int destIndex)
Read an integer at position src+srcIndex and copy it to the dest+destIndex
|
static void |
putInt(byte[] dest,
int destIndex,
int value)
Copy an integer value to the dest+destIndex
|
static void |
putLong(byte[] src,
int srcIndex,
byte[] dest,
int destIndex)
Read a long at position src+srcIndex and copy it to the dest+destIndex
|
static void |
putLong(byte[] dest,
int destIndex,
long value)
Copy a long value to the dest+destIndex
|
static void |
putShort(byte[] src,
int srcIndex,
byte[] dest,
int destIndex)
Read a short at position src+srcIndex and copy it to the dest+destIndex
|
static void |
putShort(byte[] dest,
int destIndex,
short value)
Copy a short value to the dest+destIndex
|
io.netty.buffer.ByteBuf |
readBytes(int length) |
io.netty.buffer.ByteBuf |
readSlice(int length) |
DrillBuf |
reallocIfNeeded(int size) |
int |
refCnt() |
boolean |
release() |
boolean |
release(int decrement)
Release the provided number of reference counts.
|
io.netty.buffer.ByteBuf |
retain() |
DrillBuf |
retain(BufferAllocator target)
Create a new DrillBuf that is associated with an alternative allocator for
the purposes of memory ownership and accounting.
|
io.netty.buffer.ByteBuf |
retain(int increment) |
void |
setByte(int index,
byte b) |
io.netty.buffer.ByteBuf |
setByte(int index,
int value) |
io.netty.buffer.ByteBuf |
setBytes(int index,
byte[] src,
int srcIndex,
int length) |
io.netty.buffer.ByteBuf |
setBytes(int index,
ByteBuffer src) |
io.netty.buffer.ByteBuf |
setBytes(int index,
ByteBuffer src,
int srcIndex,
int length) |
io.netty.buffer.ByteBuf |
setBytes(int index,
io.netty.buffer.ByteBuf src,
int srcIndex,
int length) |
int |
setBytes(int index,
FileChannel in,
long position,
int length) |
int |
setBytes(int index,
InputStream in,
int length) |
int |
setBytes(int index,
ScatteringByteChannel in,
int length) |
io.netty.buffer.ByteBuf |
setChar(int index,
int value) |
io.netty.buffer.ByteBuf |
setDouble(int index,
double value) |
io.netty.buffer.ByteBuf |
setFloat(int index,
float value) |
io.netty.buffer.ByteBuf |
setInt(int index,
int value) |
io.netty.buffer.ByteBuf |
setIntLE(int index,
int value) |
io.netty.buffer.ByteBuf |
setLong(int index,
long value) |
io.netty.buffer.ByteBuf |
setLongLE(int index,
long value) |
io.netty.buffer.ByteBuf |
setMedium(int index,
int value) |
io.netty.buffer.ByteBuf |
setMediumLE(int index,
int value) |
io.netty.buffer.ByteBuf |
setShort(int index,
int value) |
io.netty.buffer.ByteBuf |
setShortLE(int index,
int value) |
io.netty.buffer.ByteBuf |
slice() |
DrillBuf |
slice(int index,
int length) |
String |
toHexString(int start,
int length)
Return the buffer's byte contents in the form of a hex dump.
|
String |
toString() |
String |
toString(Charset charset) |
String |
toString(int index,
int length,
Charset charset) |
io.netty.buffer.ByteBuf |
touch() |
io.netty.buffer.ByteBuf |
touch(Object hint) |
String |
toVerboseString() |
DrillBuf.TransferResult |
transferOwnership(BufferAllocator target)
Transfer the memory accounting ownership of this DrillBuf to another
allocator.
|
byte[] |
unsafeGetMemory(int srcOffset,
int length)
Convenience method to read buffer bytes into a newly allocated byte
array.
|
io.netty.buffer.ByteBuf |
unwrap() |
void |
writeByteUnsafe(byte b) |
io.netty.buffer.ByteBuf |
writeChar(int value) |
io.netty.buffer.ByteBuf |
writeDouble(double value) |
io.netty.buffer.ByteBuf |
writeFloat(float value) |
io.netty.buffer.ByteBuf |
writeInt(int value) |
io.netty.buffer.ByteBuf |
writeLong(long value) |
io.netty.buffer.ByteBuf |
writeShort(int value) |
adjustMarkers, asReadOnly, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkDstIndex, checkIndex, checkIndex, checkNewCapacity, checkReadableBytes, checkSrcIndex, clear, compareTo, discardReadBytes, discardSomeReadBytes, ensureAccessible, ensureWritable, ensureWritable, forEachByte, forEachByte, forEachByteDesc, forEachByteDesc, getBoolean, getBytes, getBytes, getBytes, getCharSequence, getMedium, getMediumLE, getUnsignedByte, getUnsignedIntLE, getUnsignedShortLE, indexOf, isReadable, isReadable, isReadOnly, isWritable, isWritable, markReaderIndex, markWriterIndex, maxCapacity, maxCapacity, maxWritableBytes, newSwappedByteBuf, readableBytes, readBoolean, readByte, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readChar, readCharSequence, readDouble, readerIndex, readerIndex, readFloat, readInt, readIntLE, readLong, readLongLE, readMedium, readMediumLE, readRetainedSlice, readShort, readShortLE, readUnsignedByte, readUnsignedInt, readUnsignedIntLE, readUnsignedMedium, readUnsignedMediumLE, readUnsignedShort, readUnsignedShortLE, resetReaderIndex, resetWriterIndex, retainedDuplicate, retainedSlice, retainedSlice, setBoolean, setBytes, setBytes, setBytes, setCharSequence, setIndex, setZero, skipBytes, trimIndicesToCapacity, writableBytes, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeCharSequence, writeIntLE, writeLongLE, writeMedium, writeMediumLE, writerIndex, writerIndex, writeShortLE, writeZero
public static final int LONG_NUM_BYTES
public static final int INT_NUM_BYTES
public static final int SHORT_NUM_BYTES
public DrillBuf(AtomicInteger refCnt, AllocationManager.BufferLedger ledger, UnsafeDirectLittleEndian byteBuf, BufferManager manager, io.netty.buffer.ByteBufAllocator alloc, int offset, int length, boolean isEmpty)
public DrillBuf reallocIfNeeded(int size)
public int refCnt()
refCnt
in interface io.netty.util.ReferenceCounted
public long addr()
public DrillBuf retain(BufferAllocator target)
target
- The target allocator to create an association with.public DrillBuf.TransferResult transferOwnership(BufferAllocator target)
This operation has no impact on the reference count of this DrillBuf. The newly created DrillBuf with either have a reference count of 1 (in the case that this is the first time this memory is being associated with the new allocator) or the current value of the reference count for the other AllocationManager/BufferLedger combination in the case that the provided allocator already had an association to this underlying memory.
Transfers will always succeed, even if that puts the other allocator into an overlimit situation. This is possible due to the fact that the original owning allocator may have allocated this memory out of a local reservation whereas the target allocator may need to allocate new memory from a parent or RootAllocator. This operation is done in a mostly-lockless but consistent manner. As such, the overlimit==true situation could occur slightly prematurely to an actual overlimit==true condition. This is simply conservative behavior which means we may return overlimit slightly sooner than is necessary.
target
- The allocator to transfer ownership to.public AllocationManager.BufferLedger getLedger()
AllocationManager.BufferLedger
associated with this DrillBuf
.public boolean release()
release
in interface io.netty.util.ReferenceCounted
public boolean release(int decrement)
release
in interface io.netty.util.ReferenceCounted
public int capacity()
capacity
in class io.netty.buffer.ByteBuf
public DrillBuf capacity(int newCapacity)
capacity
in class io.netty.buffer.ByteBuf
public io.netty.buffer.ByteBufAllocator alloc()
alloc
in class io.netty.buffer.ByteBuf
public ByteOrder order()
order
in class io.netty.buffer.ByteBuf
public io.netty.buffer.ByteBuf order(ByteOrder endianness)
order
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf unwrap()
unwrap
in class io.netty.buffer.ByteBuf
public boolean isDirect()
isDirect
in class io.netty.buffer.ByteBuf
public io.netty.buffer.ByteBuf readBytes(int length)
readBytes
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf readSlice(int length)
readSlice
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf copy()
copy
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf copy(int index, int length)
copy
in class io.netty.buffer.ByteBuf
public io.netty.buffer.ByteBuf slice()
slice
in class io.netty.buffer.AbstractByteBuf
public static String bufferState(io.netty.buffer.ByteBuf buf)
public DrillBuf slice(int index, int length)
slice
in class io.netty.buffer.AbstractByteBuf
public DrillBuf duplicate()
duplicate
in class io.netty.buffer.AbstractByteBuf
public int nioBufferCount()
nioBufferCount
in class io.netty.buffer.ByteBuf
public ByteBuffer nioBuffer()
nioBuffer
in class io.netty.buffer.AbstractByteBuf
public ByteBuffer nioBuffer(int index, int length)
nioBuffer
in class io.netty.buffer.ByteBuf
public ByteBuffer internalNioBuffer(int index, int length)
internalNioBuffer
in class io.netty.buffer.ByteBuf
public ByteBuffer[] nioBuffers()
nioBuffers
in class io.netty.buffer.AbstractByteBuf
public ByteBuffer[] nioBuffers(int index, int length)
nioBuffers
in class io.netty.buffer.ByteBuf
public boolean hasArray()
hasArray
in class io.netty.buffer.ByteBuf
public byte[] array()
array
in class io.netty.buffer.ByteBuf
public int arrayOffset()
arrayOffset
in class io.netty.buffer.ByteBuf
public boolean hasMemoryAddress()
hasMemoryAddress
in class io.netty.buffer.ByteBuf
public long memoryAddress()
memoryAddress
in class io.netty.buffer.ByteBuf
public String toString()
toString
in class io.netty.buffer.AbstractByteBuf
public String toString(Charset charset)
toString
in class io.netty.buffer.AbstractByteBuf
public String toString(int index, int length, Charset charset)
toString
in class io.netty.buffer.AbstractByteBuf
public int hashCode()
hashCode
in class io.netty.buffer.AbstractByteBuf
public boolean equals(Object obj)
equals
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf retain(int increment)
retain
in interface io.netty.util.ReferenceCounted
retain
in class io.netty.buffer.ByteBuf
public io.netty.buffer.ByteBuf retain()
retain
in interface io.netty.util.ReferenceCounted
retain
in class io.netty.buffer.ByteBuf
public io.netty.buffer.ByteBuf touch()
touch
in interface io.netty.util.ReferenceCounted
touch
in class io.netty.buffer.ByteBuf
public io.netty.buffer.ByteBuf touch(Object hint)
touch
in interface io.netty.util.ReferenceCounted
touch
in class io.netty.buffer.ByteBuf
public long getLong(int index)
getLong
in class io.netty.buffer.AbstractByteBuf
public long getLongLE(int index)
getLongLE
in class io.netty.buffer.AbstractByteBuf
public float getFloat(int index)
getFloat
in class io.netty.buffer.AbstractByteBuf
public double getDouble(int index)
getDouble
in class io.netty.buffer.AbstractByteBuf
public char getChar(int index)
getChar
in class io.netty.buffer.AbstractByteBuf
public long getUnsignedInt(int index)
getUnsignedInt
in class io.netty.buffer.AbstractByteBuf
public int getInt(int index)
getInt
in class io.netty.buffer.AbstractByteBuf
public int getIntLE(int index)
getIntLE
in class io.netty.buffer.AbstractByteBuf
public int getUnsignedShort(int index)
getUnsignedShort
in class io.netty.buffer.AbstractByteBuf
public short getShort(int index)
getShort
in class io.netty.buffer.AbstractByteBuf
public short getShortLE(int index)
getShortLE
in class io.netty.buffer.AbstractByteBuf
public int getUnsignedMedium(int index)
getUnsignedMedium
in class io.netty.buffer.AbstractByteBuf
public int getUnsignedMediumLE(int index)
getUnsignedMediumLE
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf setShort(int index, int value)
setShort
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf setShortLE(int index, int value)
setShortLE
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf setMedium(int index, int value)
setMedium
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf setMediumLE(int index, int value)
setMediumLE
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf setInt(int index, int value)
setInt
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf setIntLE(int index, int value)
setIntLE
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf setLong(int index, long value)
setLong
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf setLongLE(int index, long value)
setLongLE
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf setChar(int index, int value)
setChar
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf setFloat(int index, float value)
setFloat
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf setDouble(int index, double value)
setDouble
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf writeShort(int value)
writeShort
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf writeInt(int value)
writeInt
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf writeLong(long value)
writeLong
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf writeChar(int value)
writeChar
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf writeFloat(float value)
writeFloat
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf writeDouble(double value)
writeDouble
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf getBytes(int index, byte[] dst, int dstIndex, int length)
getBytes
in class io.netty.buffer.ByteBuf
public io.netty.buffer.ByteBuf getBytes(int index, ByteBuffer dst)
getBytes
in class io.netty.buffer.ByteBuf
public io.netty.buffer.ByteBuf setByte(int index, int value)
setByte
in class io.netty.buffer.AbstractByteBuf
public void setByte(int index, byte b)
public void writeByteUnsafe(byte b)
protected byte _getByte(int index)
_getByte
in class io.netty.buffer.AbstractByteBuf
protected short _getShort(int index)
_getShort
in class io.netty.buffer.AbstractByteBuf
protected short _getShortLE(int index)
_getShortLE
in class io.netty.buffer.AbstractByteBuf
protected int _getInt(int index)
_getInt
in class io.netty.buffer.AbstractByteBuf
protected int _getIntLE(int index)
_getIntLE
in class io.netty.buffer.AbstractByteBuf
protected long _getLong(int index)
_getLong
in class io.netty.buffer.AbstractByteBuf
protected long _getLongLE(int index)
_getLongLE
in class io.netty.buffer.AbstractByteBuf
protected void _setByte(int index, int value)
_setByte
in class io.netty.buffer.AbstractByteBuf
protected void _setShort(int index, int value)
_setShort
in class io.netty.buffer.AbstractByteBuf
protected void _setShortLE(int index, int value)
_setShortLE
in class io.netty.buffer.AbstractByteBuf
protected void _setMedium(int index, int value)
_setMedium
in class io.netty.buffer.AbstractByteBuf
protected void _setMediumLE(int index, int value)
_setMediumLE
in class io.netty.buffer.AbstractByteBuf
protected void _setInt(int index, int value)
_setInt
in class io.netty.buffer.AbstractByteBuf
protected void _setIntLE(int index, int value)
_setIntLE
in class io.netty.buffer.AbstractByteBuf
protected void _setLong(int index, long value)
_setLong
in class io.netty.buffer.AbstractByteBuf
protected void _setLongLE(int index, long value)
_setLongLE
in class io.netty.buffer.AbstractByteBuf
public io.netty.buffer.ByteBuf getBytes(int index, io.netty.buffer.ByteBuf dst, int dstIndex, int length)
getBytes
in class io.netty.buffer.ByteBuf
public io.netty.buffer.ByteBuf getBytes(int index, OutputStream out, int length) throws IOException
getBytes
in class io.netty.buffer.ByteBuf
IOException
public int getBytes(int index, FileChannel out, long position, int length) throws IOException
getBytes
in class io.netty.buffer.ByteBuf
IOException
protected int _getUnsignedMedium(int index)
_getUnsignedMedium
in class io.netty.buffer.AbstractByteBuf
protected int _getUnsignedMediumLE(int index)
_getUnsignedMediumLE
in class io.netty.buffer.AbstractByteBuf
public int getBytes(int index, GatheringByteChannel out, int length) throws IOException
getBytes
in class io.netty.buffer.ByteBuf
IOException
public io.netty.buffer.ByteBuf setBytes(int index, io.netty.buffer.ByteBuf src, int srcIndex, int length)
setBytes
in class io.netty.buffer.ByteBuf
public io.netty.buffer.ByteBuf setBytes(int index, ByteBuffer src, int srcIndex, int length)
public io.netty.buffer.ByteBuf setBytes(int index, byte[] src, int srcIndex, int length)
setBytes
in class io.netty.buffer.ByteBuf
public io.netty.buffer.ByteBuf setBytes(int index, ByteBuffer src)
setBytes
in class io.netty.buffer.ByteBuf
public int setBytes(int index, InputStream in, int length) throws IOException
setBytes
in class io.netty.buffer.ByteBuf
IOException
public int setBytes(int index, ScatteringByteChannel in, int length) throws IOException
setBytes
in class io.netty.buffer.ByteBuf
IOException
public int setBytes(int index, FileChannel in, long position, int length) throws IOException
setBytes
in class io.netty.buffer.ByteBuf
IOException
public byte getByte(int index)
getByte
in class io.netty.buffer.AbstractByteBuf
public void close()
close
in interface AutoCloseable
public int getPossibleMemoryConsumed()
public int getActualMemoryConsumed()
public String toHexString(int start, int length)
start
- the starting byte indexlength
- how many bytes to logpublic long getId()
public String toVerboseString()
public void print(StringBuilder sb, int indent, BaseAllocator.Verbosity verbosity)
public byte[] unsafeGetMemory(int srcOffset, int length)
srcOffset
- the offset into this buffer of the data to readlength
- number of bytes to readpublic static short getShort(byte[] data, int index)
data
- source byte arrayindex
- index within the byte arraypublic static int getInt(byte[] data, int index)
data
- source byte arrayindex
- index within the byte arraypublic static long getLong(byte[] data, int index)
data
- data source byte arrayindex
- index within the byte arraypublic static void putShort(byte[] src, int srcIndex, byte[] dest, int destIndex)
src
- source byte arraysrcIndex
- source indexdest
- destination byte arraydestIndex
- destination indexpublic static void putInt(byte[] src, int srcIndex, byte[] dest, int destIndex)
src
- source byte arraysrcIndex
- source indexdest
- destination byte arraydestIndex
- destination indexpublic static void putLong(byte[] src, int srcIndex, byte[] dest, int destIndex)
src
- source byte arraysrcIndex
- source indexdest
- destination byte arraydestIndex
- destination indexpublic static void putShort(byte[] dest, int destIndex, short value)
dest
- destination byte arraydestIndex
- destination indexvalue
- a short valuepublic static void putInt(byte[] dest, int destIndex, int value)
dest
- destination byte arraydestIndex
- destination indexvalue
- an int valuepublic static void putLong(byte[] dest, int destIndex, long value)
dest
- destination byte arraydestIndex
- destination indexvalue
- a long valueCopyright © 1970 The Apache Software Foundation. All rights reserved.