Package io.netty.buffer
Interface ByteBufConvertible
- All Known Implementing Classes:
AbstractByteBuf,AbstractDerivedByteBuf,AbstractReferenceCountedByteBuf,ByteBuf,CompositeByteBuf,DuplicatedByteBuf,EmptyByteBuf,ReadOnlyByteBuf,SlicedByteBuf,SwappedByteBuf,UnpooledDirectByteBuf,UnpooledHeapByteBuf,UnpooledUnsafeDirectByteBuf,UnpooledUnsafeHeapByteBuf
public interface ByteBufConvertible
-
Method Summary
-
Method Details
-
asByteBuf
ByteBuf asByteBuf()Turn this object into aByteBuf. This does not increment the reference count of theByteBufinstance. The conversion or exposure of theByteBufmust be idempotent, so that this method can be called either once, or multiple times, without causing any change in program behaviour.- Returns:
- A
ByteBufinstance from this object.
-