Module io.netty5.buffer
Package io.netty5.buffer.api.internal
Interface NotReadOnlyReadableComponent
-
public interface NotReadOnlyReadableComponentSafety by-pass that let us getByteBuffers from aReadableComponentthat is not read-only.This is for instance used by the
SslHandler, because someSSLEngineimplementations cannot unwrap or decode packets from read-only buffers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBuffermutableReadableBuffer()Get aByteBufferinstance for this memory component.
-
-
-
Method Detail
-
mutableReadableBuffer
ByteBuffer mutableReadableBuffer()
Get aByteBufferinstance for this memory component.Note that unlike the
ReadableComponent.readableBuffer()method, theByteBufferreturned here is writable.- Returns:
- A new
ByteBuffer, with its own position and limit, for this memory component.
-
-