## 类的使用
org.springframework.core.io.buffer.NettyDataBuffer

- 使用NettyDataBuffer的程序包
  程序包 | 说明
  --- | ---
  org.springframework.core.io.buffer | Generic abstraction for working with byte buffer implementations.

- - ### org.springframework.core.io.buffer中NettyDataBuffer的使用

    返回NettyDataBuffer的org.springframework.core.io.buffer中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `NettyDataBuffer` | NettyDataBufferFactory.`allocateBuffer()`
    `NettyDataBuffer` | NettyDataBufferFactory.`allocateBuffer(int initialCapacity)`
    `NettyDataBuffer` | NettyDataBuffer.`capacity(int capacity)`
    `NettyDataBuffer` | NettyDataBuffer.`read(byte[] destination)`
    `NettyDataBuffer` | NettyDataBuffer.`read(byte[] destination, int offset, int length)`
    `NettyDataBuffer` | NettyDataBuffer.`readPosition(int readPosition)`
    `NettyDataBuffer` | NettyDataBuffer.`slice(int index, int length)`
    `NettyDataBuffer` | NettyDataBufferFactory.`wrap(io.netty.buffer.ByteBuf byteBuf)` Wrap the given Netty `ByteBuf` in a `NettyDataBuffer`.
    `NettyDataBuffer` | NettyDataBufferFactory.`wrap(ByteBuffer byteBuffer)`
    `NettyDataBuffer` | NettyDataBuffer.`write(byte b)`
    `NettyDataBuffer` | NettyDataBuffer.`write(byte[] source)`
    `NettyDataBuffer` | NettyDataBuffer.`write(byte[] source, int offset, int length)`
    `NettyDataBuffer` | NettyDataBuffer.`write(io.netty.buffer.ByteBuf... byteBufs)` Writes one or more Netty `ByteBuf`s to this buffer, starting at the current writing position.
    `NettyDataBuffer` | NettyDataBuffer.`write(ByteBuffer... buffers)`
    `NettyDataBuffer` | NettyDataBuffer.`write(DataBuffer... buffers)`
    `NettyDataBuffer` | NettyDataBuffer.`writePosition(int writePosition)`