Top Description Fields Constructors Methods
io.netty.buffer

public Class SlicedByteBuf

extends AbstractUnpooledSlicedByteBuf
Class Inheritance
Annotations
@Deprecated

Deprecated

Do not use.

A derived buffer which exposes its parent's sub-region only. It is recommended to use ByteBuf#slice() and ByteBuf#slice(int, int) instead of calling the constructor explicitly.

Field Summary

Modifier and TypeField and Description
private int

Constructor Summary

AccessConstructor and Description
public
SlicedByteBuf(ByteBuf buffer, int index, int length)

Method Summary

Modifier and TypeMethod and Description
public int
capacity()

Implements abstract io.netty.buffer.ByteBuf.capacity.

Returns the number of bytes (octets) this buffer can contain.
pack-priv final void
initLength(int
the length argument from the constructor.
length
)

Overrides io.netty.buffer.AbstractUnpooledSlicedByteBuf.initLength.

Called by the constructor before writerIndex(int).
pack-priv final int
Inherited from io.netty.buffer.AbstractUnpooledSlicedByteBuf:
_getByte_getInt_getIntLE_getLong_getLongLE_getShort_getShortLE_getUnsignedMedium_getUnsignedMediumLE_setByte_setInt_setIntLE_setLong_setLongLE_setMedium_setMediumLE_setShort_setShortLEallocarrayarrayOffsetcapacitycheckSliceOutOfBoundscopyduplicateforEachByteforEachByteDescgetBytegetBytesgetBytesgetBytesgetBytesgetBytesgetBytesgetCharSequencegetIntgetIntLEgetLonggetLongLEgetShortgetShortLEgetUnsignedMediumgetUnsignedMediumLEhasArrayhasMemoryAddressidxisDirectmemoryAddressnioBuffernioBufferCountnioBuffersordersetBytesetBytessetBytessetBytessetBytessetBytessetBytessetIntsetIntLEsetLongsetLongLEsetMediumsetMediumLEsetShortsetShortLEsliceunwrap

Field Detail

lengthback to summary
private int length

Constructor Detail

SlicedByteBufback to summary
public SlicedByteBuf(ByteBuf buffer, int index, int length)

Method Detail

capacityback to summary
public int capacity()

Implements abstract io.netty.buffer.ByteBuf.capacity.

Doc from io.netty.buffer.ByteBuf.capacity.

Returns the number of bytes (octets) this buffer can contain.

Annotations
@Override
initLengthback to summary
pack-priv final void initLength(int length)

Overrides io.netty.buffer.AbstractUnpooledSlicedByteBuf.initLength.

Doc from io.netty.buffer.AbstractUnpooledSlicedByteBuf.initLength.

Called by the constructor before writerIndex(int).

Parameters
length:int

the length argument from the constructor.

Annotations
@Override
lengthback to summary
pack-priv final int length()

Overrides io.netty.buffer.AbstractUnpooledSlicedByteBuf.length.

Annotations
@Override