Uses of Interface
io.netty.buffer.ChunkInfo
Packages that use ChunkInfo
Package
Description
Abstraction of a byte buffer - the fundamental data structure
to represent a low-level binary and text message.
-
Uses of ChunkInfo in io.netty.buffer
Classes in io.netty.buffer that implement ChunkInfoModifier and TypeClassDescriptionprivate static final class(package private) static class(package private) static classRemoves per-allocation retain()/release() atomic ops from the hot path by replacing ref counting with a segment-count state machine.(package private) final classPoolChunk<T>Description of algorithm for PageRun/PoolSubpage allocation from PoolChunk Notation: The following terms are important to understand the code > page - a page is the smallest unit of memory chunk that can be allocated > run - a run is a collection of pages > chunk - a chunk is a collection of runs > in this code chunkSize = maxPages * pageSize To begin we allocate a byte array of size = chunkSize Whenever a ByteBuf of given size needs to be created we search for the first position in the byte array that has enough empty space to accommodate the requested size and return a (long) handle that encodes this offset information, (this memory segment is then marked as reserved so it is always used by exactly one ByteBuf and no more) For simplicity all sizes are normalized according to} method.invalid @link
{@link PoolArena#sizeClass#size2SizeIdx(int)Methods in io.netty.buffer with parameters of type ChunkInfoModifier and TypeMethodDescriptionvoidAbstractChunkEvent.fill(ChunkInfo chunk, Class<? extends AbstractByteBufAllocator> allocatorType) (package private) static voidPooledByteBufAllocator.onAllocateChunk(ChunkInfo chunk, boolean pooled) (package private) static voidPooledByteBufAllocator.onDeallocateChunk(ChunkInfo chunk, boolean pooled)