Top Fields Constructors Methods
io.netty.buffer

pack-priv final Class PooledUnsafeHeapByteBuf

extends PooledHeapByteBuf
Class Inheritance
Imports
io.netty.util.internal.ObjectPool, .ObjectPool.Handle, .ObjectPool.ObjectCreator, .PlatformDependent

Field Summary

Modifier and TypeField and Description
private static final ObjectPool<PooledUnsafeHeapByteBuf>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected byte
protected int
protected int
protected long
protected long
protected short
protected short
protected int
protected int
protected void
_setByte(int index, int value)

Overrides io.netty.buffer.PooledHeapByteBuf._setByte.

protected void
_setInt(int index, int value)

Overrides io.netty.buffer.PooledHeapByteBuf._setInt.

protected void
protected void
_setLong(int index, long value)

Overrides io.netty.buffer.PooledHeapByteBuf._setLong.

protected void
protected void
protected void
protected void
protected void
protected SwappedByteBuf
newSwappedByteBuf()

Overrides io.netty.buffer.AbstractByteBuf.newSwappedByteBuf.

Deprecated
Creates a new SwappedByteBuf for this ByteBuf instance.
pack-priv static PooledUnsafeHeapByteBuf
newUnsafeInstance(int maxCapacity)

public ByteBuf
setZero(int index, int
the number of NULs to write to the buffer
length
)

Overrides io.netty.buffer.AbstractByteBuf.setZero.

Fills this buffer with NUL (0x00) starting at the specified absolute index.
public ByteBuf
writeZero(int
the number of NULs to write to the buffer
length
)

Overrides io.netty.buffer.AbstractByteBuf.writeZero.

Fills this buffer with NUL (0x00) starting at the current writerIndex and increases the writerIndex by the specified length.
Inherited from io.netty.buffer.PooledHeapByteBuf:
arrayarrayOffsetcopyduplicateInternalNioBuffergetBytesgetBytesgetBytesgetByteshasArrayhasMemoryAddressisDirectmemoryAddressnewInstancenewInternalNioBuffersetBytessetBytessetBytessetBytes

Field Detail

RECYCLERback to summary
private static final ObjectPool<PooledUnsafeHeapByteBuf> RECYCLER

Hides io.netty.buffer.PooledHeapByteBuf.RECYCLER.

Constructor Detail

PooledUnsafeHeapByteBufback to summary
private PooledUnsafeHeapByteBuf(ObjectPool.Handle<PooledUnsafeHeapByteBuf> recyclerHandle, int maxCapacity)

Method Detail

_getByteback to summary
protected byte _getByte(int index)

Overrides io.netty.buffer.PooledHeapByteBuf._getByte.

Annotations
@Override
_getIntback to summary
protected int _getInt(int index)

Overrides io.netty.buffer.PooledHeapByteBuf._getInt.

Annotations
@Override
_getIntLEback to summary
protected int _getIntLE(int index)

Overrides io.netty.buffer.PooledHeapByteBuf._getIntLE.

Annotations
@Override
_getLongback to summary
protected long _getLong(int index)

Overrides io.netty.buffer.PooledHeapByteBuf._getLong.

Annotations
@Override
_getLongLEback to summary
protected long _getLongLE(int index)

Overrides io.netty.buffer.PooledHeapByteBuf._getLongLE.

Annotations
@Override
_getShortback to summary
protected short _getShort(int index)

Overrides io.netty.buffer.PooledHeapByteBuf._getShort.

Annotations
@Override
_getShortLEback to summary
protected short _getShortLE(int index)

Overrides io.netty.buffer.PooledHeapByteBuf._getShortLE.

Annotations
@Override
_getUnsignedMediumback to summary
protected int _getUnsignedMedium(int index)

Overrides io.netty.buffer.PooledHeapByteBuf._getUnsignedMedium.

Annotations
@Override
_getUnsignedMediumLEback to summary
protected int _getUnsignedMediumLE(int index)

Overrides io.netty.buffer.PooledHeapByteBuf._getUnsignedMediumLE.

Annotations
@Override
_setByteback to summary
protected void _setByte(int index, int value)

Overrides io.netty.buffer.PooledHeapByteBuf._setByte.

Annotations
@Override
_setIntback to summary
protected void _setInt(int index, int value)

Overrides io.netty.buffer.PooledHeapByteBuf._setInt.

Annotations
@Override
_setIntLEback to summary
protected void _setIntLE(int index, int value)

Overrides io.netty.buffer.PooledHeapByteBuf._setIntLE.

Annotations
@Override
_setLongback to summary
protected void _setLong(int index, long value)

Overrides io.netty.buffer.PooledHeapByteBuf._setLong.

Annotations
@Override
_setLongLEback to summary
protected void _setLongLE(int index, long value)

Overrides io.netty.buffer.PooledHeapByteBuf._setLongLE.

Annotations
@Override
_setMediumback to summary
protected void _setMedium(int index, int value)

Overrides io.netty.buffer.PooledHeapByteBuf._setMedium.

Annotations
@Override
_setMediumLEback to summary
protected void _setMediumLE(int index, int value)

Overrides io.netty.buffer.PooledHeapByteBuf._setMediumLE.

Annotations
@Override
_setShortback to summary
protected void _setShort(int index, int value)

Overrides io.netty.buffer.PooledHeapByteBuf._setShort.

Annotations
@Override
_setShortLEback to summary
protected void _setShortLE(int index, int value)

Overrides io.netty.buffer.PooledHeapByteBuf._setShortLE.

Annotations
@Override
newSwappedByteBufback to summary
protected SwappedByteBuf newSwappedByteBuf()

Overrides io.netty.buffer.AbstractByteBuf.newSwappedByteBuf.

Doc from io.netty.buffer.AbstractByteBuf.newSwappedByteBuf.

Deprecated

Creates a new SwappedByteBuf for this ByteBuf instance.

Annotations
@Override
@Deprecated
newUnsafeInstanceback to summary
pack-priv static PooledUnsafeHeapByteBuf newUnsafeInstance(int maxCapacity)
setZeroback to summary
public ByteBuf setZero(int index, int length)

Overrides io.netty.buffer.AbstractByteBuf.setZero.

Doc from io.netty.buffer.ByteBuf.setZero.

Fills this buffer with NUL (0x00) starting at the specified absolute index. This method does not modify readerIndex or writerIndex of this buffer.

Parameters
length:int

the number of NULs to write to the buffer

Annotations
@Override
writeZeroback to summary
public ByteBuf writeZero(int length)

Overrides io.netty.buffer.AbstractByteBuf.writeZero.

Doc from io.netty.buffer.ByteBuf.writeZero.

Fills this buffer with NUL (0x00) starting at the current writerIndex and increases the writerIndex by the specified length. If this.writableBytes is less than length, ensureWritable(int) will be called in an attempt to expand capacity to accommodate.

Parameters
length:int

the number of NULs to write to the buffer

Annotations
@Override