class UnpooledSlicedByteBuf extends AbstractUnpooledSlicedByteBuf
AbstractUnpooledSlicedByteBuf
that can make optimizations because it knows the sliced buffer is of
type AbstractByteBuf
.leakDetector, readerIndex, writerIndex
Constructor and Description |
---|
UnpooledSlicedByteBuf(AbstractByteBuf buffer,
int index,
int length) |
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) |
int |
capacity()
Returns the number of bytes (octets) this buffer can contain.
|
AbstractByteBuf |
unwrap()
Return the underlying buffer instance if this buffer is a wrapper of another buffer.
|
alloc, array, arrayOffset, capacity, checkSliceOutOfBounds, copy, duplicate, forEachByte, forEachByteDesc, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getCharSequence, getInt, getIntLE, getLong, getLongLE, getShort, getShortLE, getUnsignedMedium, getUnsignedMediumLE, hasArray, hasMemoryAddress, idx, initLength, isDirect, length, memoryAddress, nioBuffer, nioBufferCount, nioBuffers, order, setByte, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setCharSequence, setInt, setIntLE, setLong, setLongLE, setMedium, setMediumLE, setShort, setShortLE, slice
internalNioBuffer, isReadOnly, refCnt, refCnt0, release, release, release0, release0, retain, retain, retain0, retain0, touch, touch, touch0, touch0
adjustMarkers, asReadOnly, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkIndex, checkIndex, checkIndex0, checkNewCapacity, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, discardMarks, discardReadBytes, discardSomeReadBytes, ensureAccessible, ensureWritable, ensureWritable, equals, forEachByte, forEachByteDesc, getBoolean, getBytes, getBytes, getBytes, getChar, getDouble, getFloat, getMedium, getMediumLE, getUnsignedByte, getUnsignedInt, getUnsignedIntLE, getUnsignedShort, getUnsignedShortLE, hashCode, indexOf, isReadable, isReadable, isWritable, isWritable, markReaderIndex, markWriterIndex, maxCapacity, maxCapacity, maxWritableBytes, newSwappedByteBuf, nioBuffer, nioBuffers, order, readableBytes, readBoolean, readByte, readBytes, readBytes, readBytes, 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, setBytes, setBytes, setBytes, setChar, setDouble, setFloat, setIndex, setIndex0, setZero, skipBytes, 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, writeShortLE, writeZero
UnpooledSlicedByteBuf(AbstractByteBuf buffer, int index, int length)
public int capacity()
ByteBuf
public AbstractByteBuf unwrap()
ByteBuf
unwrap
in class AbstractUnpooledSlicedByteBuf
null
if this buffer is not a wrapperprotected byte _getByte(int index)
_getByte
in class AbstractUnpooledSlicedByteBuf
protected short _getShort(int index)
_getShort
in class AbstractUnpooledSlicedByteBuf
protected short _getShortLE(int index)
_getShortLE
in class AbstractUnpooledSlicedByteBuf
protected int _getUnsignedMedium(int index)
_getUnsignedMedium
in class AbstractUnpooledSlicedByteBuf
protected int _getUnsignedMediumLE(int index)
_getUnsignedMediumLE
in class AbstractUnpooledSlicedByteBuf
protected int _getInt(int index)
_getInt
in class AbstractUnpooledSlicedByteBuf
protected int _getIntLE(int index)
_getIntLE
in class AbstractUnpooledSlicedByteBuf
protected long _getLong(int index)
_getLong
in class AbstractUnpooledSlicedByteBuf
protected long _getLongLE(int index)
_getLongLE
in class AbstractUnpooledSlicedByteBuf
protected void _setByte(int index, int value)
_setByte
in class AbstractUnpooledSlicedByteBuf
protected void _setShort(int index, int value)
_setShort
in class AbstractUnpooledSlicedByteBuf
protected void _setShortLE(int index, int value)
_setShortLE
in class AbstractUnpooledSlicedByteBuf
protected void _setMedium(int index, int value)
_setMedium
in class AbstractUnpooledSlicedByteBuf
protected void _setMediumLE(int index, int value)
_setMediumLE
in class AbstractUnpooledSlicedByteBuf
protected void _setInt(int index, int value)
_setInt
in class AbstractUnpooledSlicedByteBuf
protected void _setIntLE(int index, int value)
_setIntLE
in class AbstractUnpooledSlicedByteBuf
protected void _setLong(int index, long value)
_setLong
in class AbstractUnpooledSlicedByteBuf
protected void _setLongLE(int index, long value)
_setLongLE
in class AbstractUnpooledSlicedByteBuf