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 ChunkInfo
    Modifier and Type
    Class
    Description
    private static final class 
     
    (package private) static class 
     
    (package private) static class 
    Removes per-allocation retain()/release() atomic ops from the hot path by replacing ref counting with a segment-count state machine.
    (package private) final class 
    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
    invalid @link
    {@link PoolArena#sizeClass#size2SizeIdx(int)
    } method.
    Methods in io.netty.buffer with parameters of type ChunkInfo
    Modifier and Type
    Method
    Description
    void
    AbstractChunkEvent.fill(ChunkInfo chunk, Class<? extends AbstractByteBufAllocator> allocatorType)
     
    (package private) static void
    PooledByteBufAllocator.onAllocateChunk(ChunkInfo chunk, boolean pooled)
     
    (package private) static void
    PooledByteBufAllocator.onDeallocateChunk(ChunkInfo chunk, boolean pooled)