final class PooledUnsafeHeapByteBuf extends PooledHeapByteBuf
| Modifier and Type | Field and Description |
|---|---|
private static Recycler<PooledUnsafeHeapByteBuf> |
RECYCLER |
cache, chunk, handle, length, maxLength, memory, offsetleakDetector, readerIndex, writerIndex| Modifier | Constructor and Description |
|---|---|
private |
PooledUnsafeHeapByteBuf(Recycler.Handle<PooledUnsafeHeapByteBuf> recyclerHandle,
int maxCapacity) |
| 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) |
private void |
_setZero(int index,
int length) |
protected SwappedByteBuf |
newSwappedByteBuf()
Deprecated.
|
(package private) static PooledUnsafeHeapByteBuf |
newUnsafeInstance(int maxCapacity) |
ByteBuf |
setZero(int index,
int length)
Fills this buffer with NUL (0x00) starting at the specified
absolute
index. |
ByteBuf |
writeZero(int length)
Fills this buffer with NUL (0x00) starting at the current
writerIndex and increases the writerIndex by the
specified length. |
array, arrayOffset, copy, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, hasArray, hasMemoryAddress, internalNioBuffer, isDirect, memoryAddress, newInstance, newInternalNioBuffer, nioBuffer, nioBufferCount, nioBuffers, readBytes, readBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setBytesalloc, capacity, capacity, deallocate, idx, init, initUnpooled, internalNioBuffer, order, retainedDuplicate, retainedSlice, retainedSlice, reuse, unwraprefCnt, release, release, retain, retain, setRefCnt, touch, touchadjustMarkers, asReadOnly, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkIndex, checkIndex, checkIndex0, checkNewCapacity, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, discardMarks, 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, 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, setBoolean, setByte, setBytes, setBytes, setBytes, setChar, setCharSequence, setDouble, setFloat, setIndex, setIndex0, 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, writeShortLEprivate static final Recycler<PooledUnsafeHeapByteBuf> RECYCLER
private PooledUnsafeHeapByteBuf(Recycler.Handle<PooledUnsafeHeapByteBuf> recyclerHandle, int maxCapacity)
static PooledUnsafeHeapByteBuf newUnsafeInstance(int maxCapacity)
protected byte _getByte(int index)
_getByte in class PooledHeapByteBufprotected short _getShort(int index)
_getShort in class PooledHeapByteBufprotected short _getShortLE(int index)
_getShortLE in class PooledHeapByteBufprotected int _getUnsignedMedium(int index)
_getUnsignedMedium in class PooledHeapByteBufprotected int _getUnsignedMediumLE(int index)
_getUnsignedMediumLE in class PooledHeapByteBufprotected int _getInt(int index)
_getInt in class PooledHeapByteBufprotected int _getIntLE(int index)
_getIntLE in class PooledHeapByteBufprotected long _getLong(int index)
_getLong in class PooledHeapByteBufprotected long _getLongLE(int index)
_getLongLE in class PooledHeapByteBufprotected void _setByte(int index,
int value)
_setByte in class PooledHeapByteBufprotected void _setShort(int index,
int value)
_setShort in class PooledHeapByteBufprotected void _setShortLE(int index,
int value)
_setShortLE in class PooledHeapByteBufprotected void _setMedium(int index,
int value)
_setMedium in class PooledHeapByteBufprotected void _setMediumLE(int index,
int value)
_setMediumLE in class PooledHeapByteBufprotected void _setInt(int index,
int value)
_setInt in class PooledHeapByteBufprotected void _setIntLE(int index,
int value)
_setIntLE in class PooledHeapByteBufprotected void _setLong(int index,
long value)
_setLong in class PooledHeapByteBufprotected void _setLongLE(int index,
long value)
_setLongLE in class PooledHeapByteBufpublic ByteBuf setZero(int index, int length)
ByteBufindex.
This method does not modify readerIndex or writerIndex of
this buffer.setZero in class AbstractByteBuflength - the number of NULs to write to the bufferpublic ByteBuf writeZero(int length)
ByteBufwriterIndex and increases the writerIndex by the
specified length.writeZero in class AbstractByteBuflength - the number of NULs to write to the bufferprivate void _setZero(int index,
int length)
@Deprecated protected SwappedByteBuf newSwappedByteBuf()
AbstractByteBufSwappedByteBuf for this ByteBuf instance.newSwappedByteBuf in class AbstractByteBuf