public final class UnpooledUnsafeDirectByteBufWrapper extends AbstractReferenceCountedByteBuf
ByteBuffer, byte[] and address direct access wrapper.
Only content manipulation operations are supported.
Is best suited only for encoding/decoding purposes.| Constructor and Description |
|---|
UnpooledUnsafeDirectByteBufWrapper() |
| 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) |
ByteBufAllocator |
alloc() |
byte[] |
array() |
int |
arrayOffset() |
int |
capacity() |
ByteBuf |
capacity(int newCapacity) |
ByteBuf |
copy(int index,
int length)
Deprecated.
|
protected void |
deallocate()
Deprecated.
|
ByteBuf |
getBytes(int index,
byte[] dst,
int dstIndex,
int length) |
ByteBuf |
getBytes(int index,
ByteBuffer dst) |
ByteBuf |
getBytes(int index,
ByteBuf dst,
int dstIndex,
int length) |
int |
getBytes(int index,
FileChannel out,
long position,
int length)
Deprecated.
|
int |
getBytes(int index,
GatheringByteChannel out,
int length)
Deprecated.
|
ByteBuf |
getBytes(int index,
OutputStream out,
int length)
Deprecated.
|
boolean |
hasArray() |
boolean |
hasMemoryAddress() |
ByteBuffer |
internalNioBuffer(int index,
int length)
Deprecated.
|
boolean |
isDirect() |
long |
memoryAddress() |
protected SwappedByteBuf |
newSwappedByteBuf()
Deprecated.
|
ByteBuffer |
nioBuffer(int index,
int length)
Deprecated.
|
int |
nioBufferCount() |
ByteBuffer[] |
nioBuffers(int index,
int length)
Deprecated.
|
ByteOrder |
order() |
ByteBuf |
readBytes(ByteBuffer dst) |
int |
readBytes(FileChannel out,
long position,
int length)
Deprecated.
|
int |
readBytes(GatheringByteChannel out,
int length)
Deprecated.
|
void |
reset() |
ByteBuf |
setBytes(int index,
byte[] src,
int srcIndex,
int length) |
ByteBuf |
setBytes(int index,
ByteBuffer src) |
ByteBuf |
setBytes(int index,
ByteBuf src,
int srcIndex,
int length) |
int |
setBytes(int index,
FileChannel in,
long position,
int length)
Deprecated.
|
int |
setBytes(int index,
InputStream in,
int length)
Deprecated.
|
int |
setBytes(int index,
ScatteringByteChannel in,
int length)
Deprecated.
|
ByteBuf |
setZero(int index,
int length) |
ByteBuf |
unwrap() |
void |
wrap(byte[] array,
int srcIndex,
int length) |
void |
wrap(ByteBuffer buffer,
int srcIndex,
int length) |
void |
wrap(long address,
int length) |
ByteBuf |
writeZero(int length) |
refCnt, release, release, retain, retain, setRefCnt, touch, touchadjustMarkers, asReadOnly, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkIndex, checkIndex, checkNewCapacity, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, discardReadBytes, discardSomeReadBytes, duplicate, ensureAccessible, ensureWritable, ensureWritable, equals, forEachByte, forEachByte, forEachByteDesc, forEachByteDesc, getBoolean, getByte, getBytes, getBytes, getBytes, getChar, getCharSequence, getDouble, getFloat, getInt, getIntLE, getLong, getLongLE, getMedium, getMediumLE, getShort, getShortLE, getUnsignedByte, getUnsignedInt, getUnsignedIntLE, getUnsignedMedium, getUnsignedMediumLE, getUnsignedShort, getUnsignedShortLE, hashCode, indexOf, isReadable, isReadable, isReadOnly, isWritable, isWritable, markReaderIndex, markWriterIndex, maxCapacity, maxCapacity, maxWritableBytes, nioBuffer, nioBuffers, order, readableBytes, readBoolean, readByte, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readChar, readCharSequence, readDouble, readerIndex, readerIndex, readFloat, readInt, readIntLE, readLong, readLongLE, readMedium, readMediumLE, readRetainedSlice, readShort, readShortLE, readSlice, readUnsignedByte, readUnsignedInt, readUnsignedIntLE, readUnsignedMedium, readUnsignedMediumLE, readUnsignedShort, readUnsignedShortLE, resetReaderIndex, resetWriterIndex, retainedDuplicate, retainedSlice, retainedSlice, setBoolean, setByte, setBytes, setBytes, setBytes, setChar, setCharSequence, setDouble, setFloat, setIndex, setInt, setIntLE, setLong, setLongLE, setMedium, setMediumLE, setShort, setShortLE, skipBytes, slice, slice, toString, toString, toString, writableBytes, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeCharSequence, writeDouble, writeFloat, writeInt, writeIntLE, writeLong, writeLongLE, writeMedium, writeMediumLE, writerIndex, writerIndex, writeShort, writeShortLEpublic void wrap(long address,
int length)
public void wrap(byte[] array,
int srcIndex,
int length)
public void wrap(ByteBuffer buffer, int srcIndex, int length)
public void reset()
public ByteBufAllocator alloc()
public int arrayOffset()
arrayOffset in class ByteBufpublic boolean hasMemoryAddress()
hasMemoryAddress in class ByteBufpublic long memoryAddress()
memoryAddress in class ByteBufprotected byte _getByte(int index)
_getByte in class AbstractByteBufprotected short _getShort(int index)
_getShort in class AbstractByteBufprotected short _getShortLE(int index)
_getShortLE in class AbstractByteBufprotected int _getUnsignedMedium(int index)
_getUnsignedMedium in class AbstractByteBufprotected int _getUnsignedMediumLE(int index)
_getUnsignedMediumLE in class AbstractByteBufprotected int _getInt(int index)
_getInt in class AbstractByteBufprotected int _getIntLE(int index)
_getIntLE in class AbstractByteBufprotected long _getLong(int index)
_getLong in class AbstractByteBufprotected long _getLongLE(int index)
_getLongLE in class AbstractByteBufpublic ByteBuf getBytes(int index, byte[] dst, int dstIndex, int length)
public ByteBuf getBytes(int index, ByteBuffer dst)
public ByteBuf readBytes(ByteBuffer dst)
readBytes in class AbstractByteBufprotected void _setByte(int index,
int value)
_setByte in class AbstractByteBufprotected void _setShort(int index,
int value)
_setShort in class AbstractByteBufprotected void _setShortLE(int index,
int value)
_setShortLE in class AbstractByteBufprotected void _setMedium(int index,
int value)
_setMedium in class AbstractByteBufprotected void _setMediumLE(int index,
int value)
_setMediumLE in class AbstractByteBufprotected void _setInt(int index,
int value)
_setInt in class AbstractByteBufprotected void _setIntLE(int index,
int value)
_setIntLE in class AbstractByteBufprotected void _setLong(int index,
long value)
_setLong in class AbstractByteBufprotected void _setLongLE(int index,
long value)
_setLongLE in class AbstractByteBufpublic ByteBuf setBytes(int index, byte[] src, int srcIndex, int length)
public ByteBuf setBytes(int index, ByteBuffer src)
@Deprecated public ByteBuf getBytes(int index, OutputStream out, int length) throws IOException
getBytes in class ByteBufIOException@Deprecated public int getBytes(int index, GatheringByteChannel out, int length) throws IOException
getBytes in class ByteBufIOException@Deprecated public int getBytes(int index, FileChannel out, long position, int length) throws IOException
getBytes in class ByteBufIOException@Deprecated public int readBytes(GatheringByteChannel out, int length) throws IOException
readBytes in class AbstractByteBufIOException@Deprecated public int readBytes(FileChannel out, long position, int length) throws IOException
readBytes in class AbstractByteBufIOException@Deprecated public int setBytes(int index, InputStream in, int length) throws IOException
setBytes in class ByteBufIOException@Deprecated public int setBytes(int index, ScatteringByteChannel in, int length) throws IOException
setBytes in class ByteBufIOException@Deprecated public int setBytes(int index, FileChannel in, long position, int length) throws IOException
setBytes in class ByteBufIOExceptionpublic int nioBufferCount()
nioBufferCount in class ByteBuf@Deprecated public ByteBuffer[] nioBuffers(int index, int length)
nioBuffers in class ByteBuf@Deprecated public ByteBuf copy(int index, int length)
@Deprecated public ByteBuffer internalNioBuffer(int index, int length)
internalNioBuffer in class ByteBuf@Deprecated public ByteBuffer nioBuffer(int index, int length)
@Deprecated protected void deallocate()
deallocate in class AbstractReferenceCountedByteBuf@Deprecated protected SwappedByteBuf newSwappedByteBuf()
newSwappedByteBuf in class AbstractByteBufpublic ByteBuf setZero(int index, int length)
setZero in class AbstractByteBufpublic ByteBuf writeZero(int length)
writeZero in class AbstractByteBufCopyright © 2017 The Apache Software Foundation. All rights reserved.