class UnpooledUnsafeNoCleanerDirectByteBuf extends UnpooledUnsafeDirectByteBuf
buffer, memoryAddressleakDetector, 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 |
(package private) java.nio.ByteBuffer |
reallocateDirect(java.nio.ByteBuffer oldBuffer,
int initialCapacity) |
_getByte, _getInt, _getIntLE, _getLong, _getLongLE, _getShort, _getShortLE, _getUnsignedMedium, _getUnsignedMediumLE, _setByte, _setInt, _setIntLE, _setLong, _setLongLE, _setMedium, _setMediumLE, _setShort, _setShortLE, addr, alloc, array, arrayOffset, capacity, copy, deallocate, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, hasArray, hasMemoryAddress, internalNioBuffer, isDirect, memoryAddress, newSwappedByteBuf, nioBuffer, nioBufferCount, nioBuffers, order, readBytes, readBytes, readBytes, setByteBuffer, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setZero, unwrap, writeZerorefCnt, 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, 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, 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, writeShortLEUnpooledUnsafeNoCleanerDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)
protected java.nio.ByteBuffer allocateDirect(int initialCapacity)
UnpooledUnsafeDirectByteBufByteBuffer with the given initialCapacity.allocateDirect in class UnpooledUnsafeDirectByteBufjava.nio.ByteBuffer reallocateDirect(java.nio.ByteBuffer oldBuffer,
int initialCapacity)
protected void freeDirect(java.nio.ByteBuffer buffer)
UnpooledUnsafeDirectByteBufByteBufferfreeDirect in class UnpooledUnsafeDirectByteBufpublic ByteBuf capacity(int newCapacity)
ByteBufnewCapacity 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