| 程序包 | 说明 |
|---|---|
| net.hasor.neta.bytebuf | |
| net.hasor.neta.channel |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractByteBufAllocator
readMark <= readIndex <= writerMark <= writerIndex <= capacity
|
class |
DirectByteBufAllocator
基于 堆外内存的 ByteBuf 接口实现。
|
class |
HeapByteBufAllocator
基于 堆内存的 ByteBuf 接口实现。
|
class |
PooledDirectByteBufAllocator
ByteBufAllocator 接口实现用于创建池化的堆外 ByteBuf
|
class |
PooledHeapByteBufAllocator
ByteBufAllocator 接口实现用于创建池化的堆 ByteBuf
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected ByteBufAllocator |
AbstractByteBuf.alloc |
static ByteBufAllocator |
ByteBufAllocator.DEFAULT |
static ByteBufAllocator |
ByteBufUtil.DEFAULT_ALLOCATOR |
static ByteBufAllocator |
ByteBufUtil.DEFAULT_DIRECT_ALLOCATOR |
static ByteBufAllocator |
ByteBufUtil.DEFAULT_HEAP_ALLOCATOR |
static ByteBufAllocator |
ByteBufUtil.DEFAULT_POOLED_DIRECT_ALLOCATOR |
static ByteBufAllocator |
ByteBufUtil.DEFAULT_POOLED_HEAP_ALLOCATOR |
| 限定符和类型 | 方法和说明 |
|---|---|
ByteBufAllocator |
AbstractByteBuf.alloc() |
ByteBufAllocator |
ByteBuf.alloc()
Returns the
ByteBufAllocator which created this buffer. |
ByteBufAllocator |
ByteBufAdapter.alloc() |
| 构造器和说明 |
|---|
AbstractByteBuf(ByteBufAllocator alloc,
int maxCapacity) |
PooledNioByteBuf(ByteBufAllocator alloc,
int capacity,
int maxCapacity,
int sliceSize,
net.hasor.neta.bytebuf.NioChunkAllocator chunkAllocator) |
SliceNioByteBuf(ByteBufAllocator alloc,
ByteBuffer byteBuffer) |
SliceNioByteBuf(ByteBufAllocator alloc,
int capacity,
int maxCapacity,
net.hasor.neta.bytebuf.NioChunkAllocator chunkAllocator) |
| 限定符和类型 | 方法和说明 |
|---|---|
ByteBufAllocator |
SoConfig.getBufAllocator() |
ByteBufAllocator |
DefaultSoResManager.getByteBufAllocator() |
ByteBufAllocator |
SoResManager.getByteBufAllocator() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SoConfig.setBufAllocator(ByteBufAllocator bufAllocator) |
Copyright © 2022–2024. All rights reserved.