Uses of Class
io.netty.buffer.PoolChunk
Packages that use PoolChunk
Package
Description
Abstraction of a byte buffer - the fundamental data structure
to represent a low-level binary and text message.
-
Uses of PoolChunk in io.netty.buffer
Fields in io.netty.buffer declared as PoolChunkModifier and TypeFieldDescriptionPooledByteBuf.chunk
PoolSubpage.chunk
PoolThreadCache.MemoryRegionCache.Entry.chunk
PoolChunkList.head
PoolChunk.next
PoolChunk.prev
Fields in io.netty.buffer with type parameters of type PoolChunkModifier and TypeFieldDescriptionprivate final AtomicReference
<PoolChunk<byte[]>> PoolArena.HeapArena.lastDestroyedChunk
Methods in io.netty.buffer that return PoolChunkModifier and TypeMethodDescriptionprotected PoolChunk
<ByteBuffer> PoolArena.DirectArena.newChunk
(int pageSize, int maxPageIdx, int pageShifts, int chunkSize) protected PoolChunk
<byte[]> PoolArena.HeapArena.newChunk
(int pageSize, int maxPageIdx, int pageShifts, int chunkSize) PoolArena.newChunk
(int pageSize, int maxPageIdx, int pageShifts, int chunkSize) protected PoolChunk
<ByteBuffer> PoolArena.DirectArena.newUnpooledChunk
(int capacity) protected PoolChunk
<byte[]> PoolArena.HeapArena.newUnpooledChunk
(int capacity) PoolArena.newUnpooledChunk
(int capacity) Methods in io.netty.buffer with parameters of type PoolChunkModifier and TypeMethodDescription(package private) void
(package private) boolean
PoolThreadCache.add
(PoolArena<?> area, PoolChunk chunk, ByteBuffer nioBuffer, long handle, int normCapacity, PoolArena.SizeClass sizeClass) AddPoolChunk
andhandle
to the cache if there is enough room.final boolean
PoolThreadCache.MemoryRegionCache.add
(PoolChunk<T> chunk, ByteBuffer nioBuffer, long handle, int normCapacity) Add to cache if not already full.(package private) void
Adds thePoolChunk
to thisPoolChunkList
.protected abstract void
PoolArena.destroyChunk
(PoolChunk<T> chunk) protected void
PoolArena.DirectArena.destroyChunk
(PoolChunk<ByteBuffer> chunk) protected void
PoolArena.HeapArena.destroyChunk
(PoolChunk<byte[]> chunk) (package private) void
PoolArena.free
(PoolChunk<T> chunk, ByteBuffer nioBuffer, long handle, int normCapacity, PoolThreadCache cache) (package private) boolean
PoolChunkList.free
(PoolChunk<T> chunk, long handle, int normCapacity, ByteBuffer nioBuffer) (package private) void
PoolArena.freeChunk
(PoolChunk<T> chunk, long handle, int normCapacity, PoolArena.SizeClass sizeClass, ByteBuffer nioBuffer, boolean finalizer) (package private) void
PooledByteBuf.init
(PoolChunk<T> chunk, ByteBuffer nioBuffer, long handle, int offset, int length, int maxLength, PoolThreadCache cache) (package private) void
PooledUnsafeDirectByteBuf.init
(PoolChunk<ByteBuffer> chunk, ByteBuffer nioBuffer, long handle, int offset, int length, int maxLength, PoolThreadCache cache) private void
PooledByteBuf.init0
(PoolChunk<T> chunk, ByteBuffer nioBuffer, long handle, int offset, int length, int maxLength, PoolThreadCache cache) protected abstract void
PoolThreadCache.MemoryRegionCache.initBuf
(PoolChunk<T> chunk, ByteBuffer nioBuffer, long handle, PooledByteBuf<T> buf, int reqCapacity, PoolThreadCache threadCache) Init thePooledByteBuf
using the provided chunk and handle with the capacity restrictions.protected void
PoolThreadCache.NormalMemoryRegionCache.initBuf
(PoolChunk<T> chunk, ByteBuffer nioBuffer, long handle, PooledByteBuf<T> buf, int reqCapacity, PoolThreadCache threadCache) protected void
PoolThreadCache.SubPageMemoryRegionCache.initBuf
(PoolChunk<T> chunk, ByteBuffer nioBuffer, long handle, PooledByteBuf<T> buf, int reqCapacity, PoolThreadCache threadCache) (package private) void
PooledByteBuf.initUnpooled
(PoolChunk<T> chunk, int length) (package private) void
PooledUnsafeDirectByteBuf.initUnpooled
(PoolChunk<ByteBuffer> chunk, int length) private boolean
private boolean
Moves thePoolChunk
down thePoolChunkList
linked-list so it will end up in the rightPoolChunkList
that has the correct minUsage / maxUsage in respect tousage()
.private static PoolThreadCache.MemoryRegionCache.Entry
PoolThreadCache.MemoryRegionCache.newEntry
(PoolChunk<?> chunk, ByteBuffer nioBuffer, long handle, int normCapacity) private void
Constructors in io.netty.buffer with parameters of type PoolChunkModifierConstructorDescription(package private)
PoolSubpage
(PoolSubpage<T> head, PoolChunk<T> chunk, int pageShifts, int runOffset, int runSize, int elemSize)