GeezerVison is showing netty.io — ByteBufConvertible (Netty API Reference (4.1.141.Final))
Interface ByteBufConvertible
- All Known Implementing Classes:
AbstractByteBuf, AbstractDerivedByteBuf, AbstractReferenceCountedByteBuf, ByteBuf, CompositeByteBuf, DuplicatedByteBuf, EmptyByteBuf, ReadOnlyByteBuf, SlicedByteBuf, SwappedByteBuf, UnpooledDirectByteBuf, UnpooledHeapByteBuf, UnpooledUnsafeDirectByteBuf, UnpooledUnsafeHeapByteBuf
public interface ByteBufConvertible
An interface that can be implemented by any object that know how to turn itself into a
ByteBuf.
All
ByteBuf classes implement this interface, and return themselves.
-
Method Summary
Modifier and Type
Method
Description
-
Method Details
-
asByteBuf
Turn this object into a
ByteBuf.
This does
not increment the reference count of the
ByteBuf instance.
The conversion or exposure of the
ByteBuf must be idempotent, so that this method can be called
either once, or multiple times, without causing any change in program behaviour.
- Returns:
- A
ByteBuf instance from this object.