Top Fields Constructors Methods
io.netty.buffer

pack-priv Class UnpooledUnsafeNoCleanerDirectByteBuf

extends UnpooledUnsafeDirectByteBuf
Class Inheritance
Known Direct Subclasses
io.netty.buffer.UnpooledByteBufAllocator.InstrumentedUnpooledUnsafeNoCleanerDirectByteBuf
Imports
io.netty.util.internal.PlatformDependent, java.nio.ByteBuffer

Field Summary

Inherited from io.netty.buffer.UnpooledUnsafeDirectByteBuf:
memoryAddress

Constructor Summary

AccessConstructor and Description
pack-priv
UnpooledUnsafeNoCleanerDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)

Method Summary

Modifier and TypeMethod and Description
protected ByteBuffer
allocateDirect(int initialCapacity)

Overrides io.netty.buffer.UnpooledDirectByteBuf.allocateDirect.

Allocate a new direct ByteBuffer with the given initialCapacity.
public ByteBuf
capacity(int newCapacity)

Overrides io.netty.buffer.UnpooledDirectByteBuf.capacity.

Adjusts the capacity of this buffer.
protected void
pack-priv ByteBuffer
reallocateDirect(ByteBuffer oldBuffer, int initialCapacity)

Inherited from io.netty.buffer.UnpooledUnsafeDirectByteBuf:
_getByte_getInt_getIntLE_getLong_getLongLE_getShort_getShortLE_getUnsignedMedium_getUnsignedMediumLE_setByte_setInt_setIntLE_setLong_setLongLE_setMedium_setMediumLE_setShort_setShortLEaddrcopygetBytegetBytesgetBytesgetBytesgetBytesgetIntgetLonggetShortgetUnsignedMediumhasMemoryAddressmemoryAddressnewSwappedByteBufsetBytesetByteBuffersetBytessetBytessetBytessetBytessetIntsetLongsetMediumsetShortsetZerowriteZero

Constructor Detail

UnpooledUnsafeNoCleanerDirectByteBufback to summary
pack-priv UnpooledUnsafeNoCleanerDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)

Method Detail

allocateDirectback to summary
protected ByteBuffer allocateDirect(int initialCapacity)

Overrides io.netty.buffer.UnpooledDirectByteBuf.allocateDirect.

Doc from io.netty.buffer.UnpooledDirectByteBuf.allocateDirect.

Allocate a new direct ByteBuffer with the given initialCapacity.

Annotations
@Override
capacityback to summary
public ByteBuf capacity(int newCapacity)

Overrides io.netty.buffer.UnpooledDirectByteBuf.capacity.

Doc from io.netty.buffer.ByteBuf.capacity.

Adjusts the capacity of this buffer. If the 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).

Annotations
@Override
freeDirectback to summary
protected void freeDirect(ByteBuffer buffer)

Overrides io.netty.buffer.UnpooledDirectByteBuf.freeDirect.

Doc from io.netty.buffer.UnpooledDirectByteBuf.freeDirect.

Free a direct ByteBuffer

Annotations
@Override
reallocateDirectback to summary
pack-priv ByteBuffer reallocateDirect(ByteBuffer oldBuffer, int initialCapacity)