final class SlicedAbstractByteBuf extends SlicedByteBuf
SlicedByteBuf
that can make optimizations because it knows the sliced buffer is of type
AbstractByteBuf
.leakDetector, readerIndex, writerIndex
Constructor and Description |
---|
SlicedAbstractByteBuf(AbstractByteBuf buffer,
int index,
int length) |
Modifier and Type | Method and Description |
---|---|
protected byte |
_getByte(int index) |
protected int |
_getInt(int index) |
protected long |
_getLong(int index) |
protected short |
_getShort(int index) |
protected int |
_getUnsignedMedium(int index) |
protected void |
_setByte(int index,
int value) |
protected void |
_setInt(int index,
int value) |
protected void |
_setLong(int index,
long value) |
protected void |
_setMedium(int index,
int value) |
protected void |
_setShort(int index,
int value) |
AbstractByteBuf |
unwrap()
Return the underlying buffer instance if this buffer is a wrapper of another buffer.
|
alloc, array, arrayOffset, capacity, capacity, copy, duplicate, forEachByte, forEachByteDesc, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getInt, getLong, getShort, getUnsignedMedium, hasArray, hasMemoryAddress, idx, isDirect, memoryAddress, nioBuffer, nioBufferCount, nioBuffers, order, setByte, setBytes, setBytes, setBytes, setBytes, setBytes, setInt, setLong, setMedium, setShort, slice
internalNioBuffer, refCnt, release, release, retain, retain
adjustMarkers, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkIndex, checkIndex, checkIndex0, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, discardMarks, discardReadBytes, discardSomeReadBytes, ensureAccessible, ensureWritable, ensureWritable, equals, forEachByte, forEachByteDesc, getBoolean, getBytes, getBytes, getBytes, getChar, getDouble, getFloat, getMedium, getUnsignedByte, getUnsignedInt, getUnsignedShort, 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, readChar, readDouble, readerIndex, readerIndex, readFloat, readInt, readLong, readMedium, readShort, readSlice, readUnsignedByte, readUnsignedInt, readUnsignedMedium, readUnsignedShort, resetReaderIndex, resetWriterIndex, 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, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeMedium, writerIndex, writerIndex, writeShort, writeZero
SlicedAbstractByteBuf(AbstractByteBuf buffer, int index, int length)
public AbstractByteBuf unwrap()
ByteBuf
unwrap
in class SlicedByteBuf
null
if this buffer is not a wrapperprotected byte _getByte(int index)
_getByte
in class SlicedByteBuf
protected short _getShort(int index)
_getShort
in class SlicedByteBuf
protected int _getUnsignedMedium(int index)
_getUnsignedMedium
in class SlicedByteBuf
protected int _getInt(int index)
_getInt
in class SlicedByteBuf
protected long _getLong(int index)
_getLong
in class SlicedByteBuf
protected void _setByte(int index, int value)
_setByte
in class SlicedByteBuf
protected void _setShort(int index, int value)
_setShort
in class SlicedByteBuf
protected void _setMedium(int index, int value)
_setMedium
in class SlicedByteBuf
protected void _setInt(int index, int value)
_setInt
in class SlicedByteBuf
protected void _setLong(int index, long value)
_setLong
in class SlicedByteBuf