Class ReadOnlyAbstractByteBuf
java.lang.Object
io.netty.buffer.ByteBuf
io.netty.buffer.AbstractByteBuf
io.netty.buffer.AbstractDerivedByteBuf
io.netty.buffer.ReadOnlyByteBuf
io.netty.buffer.ReadOnlyAbstractByteBuf
- All Implemented Interfaces:
ByteBufConvertible, ReferenceCounted, Comparable<ByteBuf>
Specialized
ReadOnlyByteBuf sub-type which allows fast access to parent
without extra bound-checks.-
Field Summary
Fields inherited from class AbstractByteBuf
checkAccessible, leakDetector, readerIndex, writerIndex -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) unwrap()Return the underlying buffer instance if this buffer is a wrapper of another buffer.Methods inherited from class ReadOnlyByteBuf
_setByte, _setInt, _setIntLE, _setLong, _setLongLE, _setMedium, _setMediumLE, _setShort, _setShortLE, alloc, array, arrayOffset, asReadOnly, capacity, capacity, copy, discardReadBytes, duplicate, ensureWritable, ensureWritable, forEachByte, forEachByteDesc, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getInt, getIntLE, getLong, getLongLE, getShort, getShortLE, getUnsignedMedium, getUnsignedMediumLE, hasArray, hasMemoryAddress, isDirect, isReadOnly, isWritable, isWritable, memoryAddress, nioBuffer, nioBufferCount, nioBuffers, order, setByte, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setInt, setIntLE, setLong, setLongLE, setMedium, setMediumLE, setShort, setShortLE, sliceMethods inherited from class AbstractDerivedByteBuf
internalNioBuffer, isAccessible, isAccessible0, isContiguous, refCnt, refCnt0, release, release, release0, release0, retain, retain, retain0, retain0, touch, touch, touch0, touch0Methods inherited from class AbstractByteBuf
_internalNioBuffer, _isDirect, _memoryAddress, adjustMarkers, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkDstIndex, checkIndex, checkIndex, checkIndex0, checkNewCapacity, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, discardMarks, discardSomeReadBytes, ensureAccessible, ensureWritable0, equals, forEachByte, forEachByteAsc0, forEachByteDesc, forEachByteDesc0, getBoolean, getBytes, getBytes, getBytes, getChar, getCharSequence, getDouble, getFloat, getMedium, getMediumLE, getUnsignedByte, getUnsignedInt, getUnsignedIntLE, getUnsignedShort, getUnsignedShortLE, hashCode, indexOf, isReadable, isReadable, 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, readString, readUnsignedByte, readUnsignedInt, readUnsignedIntLE, readUnsignedMedium, readUnsignedMediumLE, readUnsignedShort, readUnsignedShortLE, resetReaderIndex, resetWriterIndex, retainedDuplicate, retainedSlice, retainedSlice, setBoolean, setBytes, setBytes, setBytes, setChar, setCharSequence, setDouble, setFloat, setIndex, setIndex0, setZero, skipBytes, slice, toString, toString, toString, trimIndicesToCapacity, 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, writeZeroMethods inherited from class ByteBuf
asByteBuf, getDoubleLE, getFloatLE, maxFastWritableBytes, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLE
-
Constructor Details
-
ReadOnlyAbstractByteBuf
ReadOnlyAbstractByteBuf(AbstractByteBuf buffer)
-
-
Method Details
-
unwrap
Description copied from class:ByteBufReturn the underlying buffer instance if this buffer is a wrapper of another buffer.- Overrides:
unwrapin classReadOnlyByteBuf- Returns:
nullif this buffer is not a wrapper
-
_getByte
protected byte _getByte(int index) - Overrides:
_getBytein classReadOnlyByteBuf
-
_getShort
protected short _getShort(int index) - Overrides:
_getShortin classReadOnlyByteBuf
-
_getShortLE
protected short _getShortLE(int index) - Overrides:
_getShortLEin classReadOnlyByteBuf
-
_getUnsignedMedium
protected int _getUnsignedMedium(int index) - Overrides:
_getUnsignedMediumin classReadOnlyByteBuf
-
_getUnsignedMediumLE
protected int _getUnsignedMediumLE(int index) - Overrides:
_getUnsignedMediumLEin classReadOnlyByteBuf
-
_getInt
protected int _getInt(int index) - Overrides:
_getIntin classReadOnlyByteBuf
-
_getIntLE
protected int _getIntLE(int index) - Overrides:
_getIntLEin classReadOnlyByteBuf
-
_getLong
protected long _getLong(int index) - Overrides:
_getLongin classReadOnlyByteBuf
-
_getLongLE
protected long _getLongLE(int index) - Overrides:
_getLongLEin classReadOnlyByteBuf
-