Package | Description |
---|---|
io.netty.buffer |
Abstraction of a byte buffer - the fundamental data structure
to represent a low-level binary and text message.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
PooledDirectByteBuf |
(package private) class |
PooledHeapByteBuf |
(package private) class |
PooledUnsafeDirectByteBuf |
(package private) class |
PooledUnsafeHeapByteBuf |
Modifier and Type | Method and Description |
---|---|
(package private) PooledByteBuf<T> |
PoolArena.allocate(PoolThreadCache cache,
int reqCapacity,
int maxCapacity) |
protected abstract PooledByteBuf<T> |
PoolArena.newByteBuf(int maxCapacity) |
protected PooledByteBuf<byte[]> |
PoolArena.HeapArena.newByteBuf(int maxCapacity) |
protected PooledByteBuf<java.nio.ByteBuffer> |
PoolArena.DirectArena.newByteBuf(int maxCapacity) |
Modifier and Type | Method and Description |
---|---|
boolean |
PoolThreadCache.MemoryRegionCache.allocate(PooledByteBuf<T> buf,
int reqCapacity)
Allocate something out of the cache if possible and remove the entry from the cache.
|
(package private) boolean |
PoolChunkList.allocate(PooledByteBuf<T> buf,
int reqCapacity,
int normCapacity) |
private boolean |
PoolThreadCache.allocate(PoolThreadCache.MemoryRegionCache<?> cache,
PooledByteBuf buf,
int reqCapacity) |
private void |
PoolArena.allocate(PoolThreadCache cache,
PooledByteBuf<T> buf,
int reqCapacity) |
private void |
PoolArena.allocateHuge(PooledByteBuf<T> buf,
int reqCapacity) |
(package private) boolean |
PoolThreadCache.allocateNormal(PoolArena<?> area,
PooledByteBuf<?> buf,
int reqCapacity,
int normCapacity)
Try to allocate a small buffer out of the cache.
|
private void |
PoolArena.allocateNormal(PooledByteBuf<T> buf,
int reqCapacity,
int normCapacity) |
(package private) boolean |
PoolThreadCache.allocateSmall(PoolArena<?> area,
PooledByteBuf<?> buf,
int reqCapacity,
int normCapacity)
Try to allocate a small buffer out of the cache.
|
(package private) boolean |
PoolThreadCache.allocateTiny(PoolArena<?> area,
PooledByteBuf<?> buf,
int reqCapacity,
int normCapacity)
Try to allocate a tiny buffer out of the cache.
|
protected void |
PoolThreadCache.SubPageMemoryRegionCache.initBuf(PoolChunk<T> chunk,
long handle,
PooledByteBuf<T> buf,
int reqCapacity) |
protected void |
PoolThreadCache.NormalMemoryRegionCache.initBuf(PoolChunk<T> chunk,
long handle,
PooledByteBuf<T> buf,
int reqCapacity) |
protected abstract void |
PoolThreadCache.MemoryRegionCache.initBuf(PoolChunk<T> chunk,
long handle,
PooledByteBuf<T> buf,
int reqCapacity)
Init the
PooledByteBuf using the provided chunk and handle with the capacity restrictions. |
(package private) void |
PoolChunk.initBuf(PooledByteBuf<T> buf,
long handle,
int reqCapacity) |
(package private) void |
PoolChunk.initBufWithSubpage(PooledByteBuf<T> buf,
long handle,
int reqCapacity) |
private void |
PoolChunk.initBufWithSubpage(PooledByteBuf<T> buf,
long handle,
int bitmapIdx,
int reqCapacity) |
(package private) void |
PoolArena.reallocate(PooledByteBuf<T> buf,
int newCapacity,
boolean freeOldMemory) |