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