final class UnpooledUnsafeNoCleanerDirectByteBuf extends UnpooledUnsafeDirectByteBuf
buffer, memoryAddress
leakDetector, readerIndex, writerIndex
Constructor and Description |
---|
UnpooledUnsafeNoCleanerDirectByteBuf(ByteBufAllocator alloc,
int initialCapacity,
int maxCapacity) |
Modifier and Type | Method and Description |
---|---|
protected java.nio.ByteBuffer |
allocateDirect(int initialCapacity)
Allocate a new direct
ByteBuffer with the given initialCapacity. |
ByteBuf |
capacity(int newCapacity)
Adjusts the capacity of this buffer.
|
protected void |
freeDirect(java.nio.ByteBuffer buffer)
Free a direct
ByteBuffer |
_getByte, _getInt, _getLong, _getShort, _getUnsignedMedium, _setByte, _setInt, _setLong, _setMedium, _setShort, addr, alloc, array, arrayOffset, capacity, copy, deallocate, getBytes, getBytes, getBytes, getBytes, getBytes, hasArray, hasMemoryAddress, internalNioBuffer, isDirect, memoryAddress, newSwappedByteBuf, nioBuffer, nioBufferCount, nioBuffers, order, readBytes, readBytes, setByteBuffer, setBytes, setBytes, setBytes, setBytes, setBytes, setZero, unwrap, writeZero
refCnt, release, release, retain, retain, setRefCnt
adjustMarkers, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkIndex, checkIndex, checkIndex0, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, discardMarks, discardReadBytes, discardSomeReadBytes, duplicate, ensureAccessible, ensureWritable, ensureWritable, equals, forEachByte, forEachByte, forEachByteDesc, forEachByteDesc, getBoolean, getByte, getBytes, getBytes, getBytes, getChar, getDouble, getFloat, getInt, getLong, getMedium, getShort, getUnsignedByte, getUnsignedInt, getUnsignedMedium, getUnsignedShort, hashCode, indexOf, isReadable, isReadable, isWritable, isWritable, markReaderIndex, markWriterIndex, maxCapacity, maxCapacity, maxWritableBytes, nioBuffer, nioBuffers, order, readableBytes, readBoolean, readByte, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readChar, readDouble, readerIndex, readerIndex, readFloat, readInt, readLong, readMedium, readShort, readSlice, readUnsignedByte, readUnsignedInt, readUnsignedMedium, readUnsignedShort, resetReaderIndex, resetWriterIndex, setBoolean, setByte, setBytes, setBytes, setBytes, setChar, setDouble, setFloat, setIndex, setIndex0, setInt, setLong, setMedium, setShort, skipBytes, slice, slice, toString, toString, toString, writableBytes, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeMedium, writerIndex, writerIndex, writeShort
UnpooledUnsafeNoCleanerDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)
protected java.nio.ByteBuffer allocateDirect(int initialCapacity)
UnpooledUnsafeDirectByteBuf
ByteBuffer
with the given initialCapacity.allocateDirect
in class UnpooledUnsafeDirectByteBuf
protected void freeDirect(java.nio.ByteBuffer buffer)
UnpooledUnsafeDirectByteBuf
ByteBuffer
freeDirect
in class UnpooledUnsafeDirectByteBuf
public ByteBuf capacity(int newCapacity)
ByteBuf
newCapacity
is less than the current
capacity, the content of this buffer is truncated. If the newCapacity
is greater
than the current capacity, the buffer is appended with unspecified data whose length is
(newCapacity - currentCapacity)
.capacity
in class UnpooledUnsafeDirectByteBuf