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 ByteBufasByteBuf()Turn this object into aByteBuf.
-
-
-
Method Detail
-
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.
-
-