| 程序包 | 说明 |
|---|---|
| net.hasor.neta.bytebuf | |
| net.hasor.neta.channel | |
| net.hasor.neta.handler | |
| net.hasor.neta.handler.ssl |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractByteBuf
readMark <= readIndex <= writerMark <= writerIndex <= capacity
|
class |
ArrayByteBuf
基于 字节数组的 ByteBuf 接口实现。
|
class |
ByteBufAdapter
readMark <= readIndex <= writerMark <= writerIndex <= capacity
|
class |
PooledNioByteBuf
基于 NioChunk 池化的 ByteBuf 接口实现,提供了扩缩容零拷贝实现
|
class |
SliceNioByteBuf
基于 NioChunk 的 ByteBuf 接口实现。
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected ByteBuf |
ByteBufAdapter.byteBuf |
| 限定符和类型 | 方法和说明 |
|---|---|
ByteBuf |
ByteBufAllocator.arrayBuffer()
Allocate a
ByteBuf, with the bytes array. |
ByteBuf |
AbstractByteBufAllocator.arrayBuffer() |
ByteBuf |
ByteBufAllocator.arrayBuffer(int capacity)
Allocate a
ByteBuf, with the bytes array. |
ByteBuf |
AbstractByteBufAllocator.arrayBuffer(int capacity) |
ByteBuf |
ByteBufAllocator.arrayBuffer(int initialCapacity,
int maxCapacity)
Allocate a
ByteBuf, with the bytes array. |
ByteBuf |
AbstractByteBufAllocator.arrayBuffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
ByteBufAllocator.buffer()
Allocate a
ByteBuf. |
ByteBuf |
AbstractByteBufAllocator.buffer() |
ByteBuf |
ByteBufOutputStream.buffer()
Returns the buffer where this stream is writing data.
|
ByteBuf |
ByteBufAllocator.buffer(int initialCapacity)
Allocate a
ByteBuf with the given initial capacity. |
ByteBuf |
AbstractByteBufAllocator.buffer(int initialCapacity) |
ByteBuf |
ByteBufAllocator.buffer(int initialCapacity,
int maxCapacity)
Allocate a
ByteBuf with the given initial capacity and the given maximal capacity. |
ByteBuf |
PooledHeapByteBufAllocator.buffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
DirectByteBufAllocator.buffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
PooledDirectByteBufAllocator.buffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
HeapByteBufAllocator.buffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
ByteBuf.copy()
复制个 ByteBuf , 连同 buffer 的数据一起复制
|
ByteBuf |
ByteBufAdapter.copy() |
ByteBuf |
ByteBufAllocator.directBuffer()
Allocate a direct
ByteBuf. |
ByteBuf |
AbstractByteBufAllocator.directBuffer() |
ByteBuf |
ByteBufAllocator.directBuffer(int capacity)
Allocate a direct
ByteBuf with the given initial capacity. |
ByteBuf |
AbstractByteBufAllocator.directBuffer(int capacity) |
ByteBuf |
ByteBufAllocator.directBuffer(int initialCapacity,
int maxCapacity)
Allocate a direct
ByteBuf with the given initial capacity and the given maximal capacity. |
ByteBuf |
AbstractByteBufAllocator.directBuffer(int initialCapacity,
int maxCapacity) |
default ByteBuf |
ByteBuf.flush()
same as markWriter()
|
ByteBuf |
ByteBufAdapter.flush() |
ByteBuf |
ByteBufAllocator.heapBuffer()
Allocate a heap
ByteBuf. |
ByteBuf |
AbstractByteBufAllocator.heapBuffer() |
ByteBuf |
ByteBufAllocator.heapBuffer(int capacity)
Allocate a heap
ByteBuf with the given initial capacity. |
ByteBuf |
AbstractByteBufAllocator.heapBuffer(int capacity) |
ByteBuf |
ByteBufAllocator.heapBuffer(int initialCapacity,
int maxCapacity)
Allocate a heap
ByteBuf with the given initial capacity and the given maximal capacity. |
ByteBuf |
AbstractByteBufAllocator.heapBuffer(int initialCapacity,
int maxCapacity) |
ByteBuf |
AbstractByteBuf.markReader() |
ByteBuf |
ByteBuf.markReader()
Marks the current
readerIndex in this buffer. |
ByteBuf |
ByteBufAdapter.markReader() |
ByteBuf |
AbstractByteBuf.markWriter() |
ByteBuf |
ByteBuf.markWriter()
Marks the current
writerIndex in this buffer. |
ByteBuf |
ByteBufAdapter.markWriter() |
ByteBuf |
AbstractByteBuf.order(ByteOrder newOrder) |
ByteBuf |
ByteBuf.order(ByteOrder newOrder)
设置字节序
|
ByteBuf |
ByteBufAdapter.order(ByteOrder newOrder) |
ByteBuf |
ByteBufAllocator.pooledBuffer()
Allocate pooled
ByteBuf. |
ByteBuf |
AbstractByteBufAllocator.pooledBuffer() |
ByteBuf |
ByteBufAllocator.pooledBuffer(int maxCapacity,
int sliceSize)
Allocate pooled
ByteBuf with the given maximal capacity. |
ByteBuf |
AbstractByteBufAllocator.pooledBuffer(int maxCapacity,
int sliceSize) |
ByteBuf |
ByteBufAllocator.pooledBuffer(int initialCapacity,
int maxCapacity,
int sliceSize)
Allocate a direct
ByteBuf with the given initial capacity and the given maximal capacity. |
ByteBuf |
PooledHeapByteBufAllocator.pooledBuffer(int initialCapacity,
int maxCapacity,
int sliceSize) |
ByteBuf |
DirectByteBufAllocator.pooledBuffer(int initialCapacity,
int maxCapacity,
int sliceSize) |
ByteBuf |
PooledDirectByteBufAllocator.pooledBuffer(int initialCapacity,
int maxCapacity,
int sliceSize) |
ByteBuf |
HeapByteBufAllocator.pooledBuffer(int initialCapacity,
int maxCapacity,
int sliceSize) |
ByteBuf |
ByteBufAllocator.pooledDirectBuffer()
Allocate pooled
ByteBuf. |
ByteBuf |
AbstractByteBufAllocator.pooledDirectBuffer() |
ByteBuf |
ByteBufAllocator.pooledDirectBuffer(int maxCapacity,
int sliceSize)
Allocate pooled
ByteBuf with the given maximal capacity. |
ByteBuf |
AbstractByteBufAllocator.pooledDirectBuffer(int maxCapacity,
int sliceSize) |
ByteBuf |
ByteBufAllocator.pooledDirectBuffer(int initialCapacity,
int maxCapacity,
int sliceSize)
Allocate a direct
ByteBuf with the given initial capacity and the given maximal capacity. |
ByteBuf |
AbstractByteBufAllocator.pooledDirectBuffer(int initialCapacity,
int maxCapacity,
int sliceSize) |
ByteBuf |
ByteBufAllocator.pooledHeapBuffer()
Allocate pooled
ByteBuf. |
ByteBuf |
AbstractByteBufAllocator.pooledHeapBuffer() |
ByteBuf |
ByteBufAllocator.pooledHeapBuffer(int maxCapacity,
int sliceSize)
Allocate pooled
ByteBuf with the given maximal capacity. |
ByteBuf |
AbstractByteBufAllocator.pooledHeapBuffer(int maxCapacity,
int sliceSize) |
ByteBuf |
ByteBufAllocator.pooledHeapBuffer(int initialCapacity,
int maxCapacity,
int sliceSize)
Allocate a direct
ByteBuf with the given initial capacity and the given maximal capacity. |
ByteBuf |
AbstractByteBufAllocator.pooledHeapBuffer(int initialCapacity,
int maxCapacity,
int sliceSize) |
ByteBuf |
AbstractByteBuf.resetReader() |
ByteBuf |
ByteBuf.resetReader()
Repositions the current
readerIndex to the marked
readerIndex in this buffer. |
ByteBuf |
ByteBufAdapter.resetReader() |
ByteBuf |
AbstractByteBuf.resetWriter() |
ByteBuf |
ByteBuf.resetWriter()
Repositions the current
writerIndex to the marked
writerIndex in this buffer. |
ByteBuf |
ByteBufAdapter.resetWriter() |
ByteBuf |
AbstractByteBuf.skipReadableBytes(int length) |
ByteBuf |
ByteBuf.skipReadableBytes(int length) |
ByteBuf |
ByteBufAdapter.skipReadableBytes(int length) |
ByteBuf |
AbstractByteBuf.skipWritableBytes(int length) |
ByteBuf |
ByteBuf.skipWritableBytes(int length) |
ByteBuf |
ByteBufAdapter.skipWritableBytes(int length) |
ByteBuf |
ByteBufAllocator.wrap(byte[] bytes)
Allocate a
ByteBuf, with the bytes array. |
ByteBuf |
AbstractByteBufAllocator.wrap(byte[] bytes) |
ByteBuf |
ByteBufAllocator.wrap(ByteBuffer javaBuffer)
Allocate a
ByteBuf, with the ByteBuffer. |
ByteBuf |
AbstractByteBufAllocator.wrap(ByteBuffer javaBuffer) |
| 限定符和类型 | 方法和说明 |
|---|---|
default int |
ByteBuf.read(ByteBuf dst)
use copy to dst
|
int |
ByteBufAdapter.read(ByteBuf dst) |
int |
AbstractByteBuf.read(ByteBuf dst,
int len) |
int |
ByteBuf.read(ByteBuf dst,
int len)
use copy to dst
|
int |
ByteBufAdapter.read(ByteBuf dst,
int len) |
static byte[] |
ByteBufUtil.toBytes(ByteBuf buf) |
int |
AbstractByteBuf.write(ByteBuf src) |
int |
ByteBuf.write(ByteBuf src)
use copy form src ByteBuffer
|
int |
ByteBufAdapter.write(ByteBuf src) |
| 构造器和说明 |
|---|
ByteBufAdapter(ByteBuf byteBuf) |
ByteBufInputStream(ByteBuf buffer)
Creates a new stream which reads data from the specified
buffer
starting at the current readerIndex and ending at the current
writerIndex. |
ByteBufInputStream(ByteBuf buffer,
boolean releaseOnClose)
Creates a new stream which reads data from the specified
buffer
starting at the current readerIndex and ending at the current
writerIndex. |
ByteBufOutputStream(ByteBuf buffer)
Creates a new stream which writes data to the specified
buffer. |
ByteBufOutputStream(ByteBuf buffer,
int cacheSize)
Creates a new stream which writes data to the specified
buffer. |
| 限定符和类型 | 字段和说明 |
|---|---|
protected Pipeline<ByteBuf> |
NetChannel.pipeline |
| 限定符和类型 | 方法和说明 |
|---|---|
ByteBuf |
DefaultSoResManager.newLocalRcvBuf() |
ByteBuf |
SoResManager.newLocalRcvBuf() |
ByteBuf |
DefaultSoResManager.newLocalSndBuf() |
ByteBuf |
SoResManager.newLocalSndBuf() |
| 限定符和类型 | 方法和说明 |
|---|---|
static PipeBuilder.PipelineBuilder<ByteBuf,ByteBuf> |
PipeInitializer.builder() |
static PipeBuilder.PipelineBuilder<ByteBuf,ByteBuf> |
PipeInitializer.builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
static PipelineFactory |
PipeInitializer.builder(PipeListener<ByteBuf> listener) |
default <RCV_DOWN,SND_UP> |
PipeBuilder.nextTo(PipeHandler<ByteBuf,RCV_DOWN> decoder,
PipeHandler<SND_UP,ByteBuf> encoder)
using decoder and encoder to combined for duplex.
|
default <RCV_DOWN,SND_UP> |
PipeBuilder.nextTo(PipeHandler<ByteBuf,RCV_DOWN> decoder,
PipeHandler<SND_UP,ByteBuf> encoder)
using decoder and encoder to combined for duplex.
|
default <RCV_DOWN,SND_UP> |
PipeBuilder.nextTo(PipeLayer<ByteBuf,RCV_DOWN,SND_UP,ByteBuf> pipeLayer)
this is a Duplexer, The data flow direction is identified by the isRcv parameter.
|
default <RCV_DOWN,SND_UP> |
PipeBuilder.nextTo(PipeLayer<ByteBuf,RCV_DOWN,SND_UP,ByteBuf> pipeLayer)
this is a Duplexer, The data flow direction is identified by the isRcv parameter.
|
<RCV_DOWN,SND_UP> |
PipeBuilder.nextTo(String name,
PipeConfig pipeConfig,
PipeHandler<ByteBuf,RCV_DOWN> decoder,
PipeHandler<SND_UP,ByteBuf> encoder)
using decoder and encoder to combined for duplex.
|
<RCV_DOWN,SND_UP> |
PipeBuilder.nextTo(String name,
PipeConfig pipeConfig,
PipeHandler<ByteBuf,RCV_DOWN> decoder,
PipeHandler<SND_UP,ByteBuf> encoder)
using decoder and encoder to combined for duplex.
|
<RCV_DOWN,SND_UP> |
PipeInitializer.nextTo(String name,
PipeConfig pipeConfig,
PipeHandler<ByteBuf,RCV_DOWN> decoder,
PipeHandler<SND_UP,ByteBuf> encoder) |
<RCV_DOWN,SND_UP> |
PipeInitializer.nextTo(String name,
PipeConfig pipeConfig,
PipeHandler<ByteBuf,RCV_DOWN> decoder,
PipeHandler<SND_UP,ByteBuf> encoder) |
<RCV_DOWN,SND_UP> |
PipeBuilder.nextTo(String name,
PipeConfig pipeConfig,
PipeLayer<ByteBuf,RCV_DOWN,SND_UP,ByteBuf> pipeLayer)
this is a Duplexer, The data flow direction is identified by the isRcv parameter.
|
<RCV_DOWN,SND_UP> |
PipeBuilder.nextTo(String name,
PipeConfig pipeConfig,
PipeLayer<ByteBuf,RCV_DOWN,SND_UP,ByteBuf> pipeLayer)
this is a Duplexer, The data flow direction is identified by the isRcv parameter.
|
<RCV_DOWN,SND_UP> |
PipeInitializer.nextTo(String name,
PipeConfig pipeConfig,
PipeLayer<ByteBuf,RCV_DOWN,SND_UP,ByteBuf> pipeLayer) |
<RCV_DOWN,SND_UP> |
PipeInitializer.nextTo(String name,
PipeConfig pipeConfig,
PipeLayer<ByteBuf,RCV_DOWN,SND_UP,ByteBuf> pipeLayer) |
default <RCV_DOWN,SND_UP> |
PipeBuilder.nextTo(String name,
PipeHandler<ByteBuf,RCV_DOWN> decoder,
PipeHandler<SND_UP,ByteBuf> encoder)
using decoder and encoder to combined for duplex.
|
default <RCV_DOWN,SND_UP> |
PipeBuilder.nextTo(String name,
PipeHandler<ByteBuf,RCV_DOWN> decoder,
PipeHandler<SND_UP,ByteBuf> encoder)
using decoder and encoder to combined for duplex.
|
default <RCV_DOWN,SND_UP> |
PipeBuilder.nextTo(String name,
PipeLayer<ByteBuf,RCV_DOWN,SND_UP,ByteBuf> pipeLayer)
this is a Duplexer, The data flow direction is identified by the isRcv parameter.
|
default <RCV_DOWN,SND_UP> |
PipeBuilder.nextTo(String name,
PipeLayer<ByteBuf,RCV_DOWN,SND_UP,ByteBuf> pipeLayer)
this is a Duplexer, The data flow direction is identified by the isRcv parameter.
|
Copyright © 2022–2024. All rights reserved.