Package io.netty.buffer
Interface ByteBufConvertible
-
- All Known Implementing Classes:
AbstractByteBuf
,AbstractDerivedByteBuf
,AbstractReferenceCountedByteBuf
,ByteBuf
,CompositeByteBuf
,DuplicatedByteBuf
,EmptyByteBuf
,ReadOnlyByteBuf
,SlicedByteBuf
,SwappedByteBuf
,UnpooledDirectByteBuf
,UnpooledHeapByteBuf
,UnpooledUnsafeDirectByteBuf
,UnpooledUnsafeHeapByteBuf
,WrappedByteBuf
public interface ByteBufConvertible
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBuf
asByteBuf()
Turn this object into aByteBuf
.
-
-
-
Method Detail
-
asByteBuf
ByteBuf asByteBuf()
Turn this object into aByteBuf
. This does not increment the reference count of theByteBuf
instance. The conversion or exposure of theByteBuf
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.
-
-