UnpooledByteBufAllocator#heapBuffer(int, int), Unpooled#buffer(int) and
Unpooled#wrappedBuffer(byte[]) instead of calling the constructor explicitly.
| Access | Constructor and Description |
|---|---|
| public | UnpooledUnsafeHeapByteBuf(ByteBufAllocator alloc, int
the initial capacity of the underlying byte array initialCapacity, int the max capacity of the underlying byte array maxCapacity)Creates a new heap buffer with a newly allocated byte array. |
| Modifier and Type | Method and Description |
|---|---|
| protected byte | |
| protected int | |
| protected int | |
| protected long | |
| protected long | |
| protected short | |
| protected short | |
| protected int | |
| protected int | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected byte[] | |
| public byte | getByte(int index)
Overrides io. index in this buffer.
|
| public int | getInt(int index)
Overrides io. index in
this buffer.
|
| public int | getIntLE(int index)
Overrides io. index in
this buffer with Little Endian Byte Order.
|
| public long | getLong(int index)
Overrides io. index in
this buffer.
|
| public long | getLongLE(int index)
Overrides io. index in
this buffer in Little Endian Byte Order.
|
| public short | getShort(int index)
Overrides io. index in
this buffer.
|
| public short | getShortLE(int index)
Overrides io. index in
this buffer in Little Endian Byte Order.
|
| public int | getUnsignedMedium(int index)
Overrides io. index in this buffer.
|
| public int | getUnsignedMediumLE(int index)
Overrides io. index in this buffer in Little Endian Byte Order.
|
| protected SwappedByteBuf | newSwappedByteBuf()
Overrides io.
Deprecated
Creates a new SwappedByteBuf for this ByteBuf instance.
|
| public ByteBuf | setByte(int index, int value)
Overrides io. index in this
buffer.
|
| public ByteBuf | setInt(int index, int value)
Overrides io. index in this buffer.
|
| public ByteBuf | setIntLE(int index, int value)
Overrides io. index in this buffer with Little Endian byte order
.
|
| public ByteBuf | setLong(int index, long value)
Overrides io. index in this buffer.
|
| public ByteBuf | setLongLE(int index, long value)
Overrides io. index in this buffer in Little Endian Byte Order.
|
| public ByteBuf | setMedium(int index, int value)
Overrides io. index in this buffer.
|
| public ByteBuf | setMediumLE(int index, int value)
Overrides io. index in this buffer in the Little Endian Byte Order.
|
| public ByteBuf | setShort(int index, int value)
Overrides io. index in this buffer.
|
| public ByteBuf | setShortLE(int index, int value)
Overrides io. index in this buffer with the Little Endian Byte Order.
|
| public ByteBuf | setZero(int index, int
the number of NULs to write to the buffer length)Overrides io. index.
|
| public ByteBuf | writeZero(int
the number of NULs to write to the buffer length)Overrides io. writerIndex and increases the writerIndex by the
specified length.
|
| UnpooledUnsafeHeapByteBuf | back to summary |
|---|---|
| public UnpooledUnsafeHeapByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity) Creates a new heap buffer with a newly allocated byte array.
| |
| _getByte | back to summary |
|---|---|
| protected byte _getByte(int index) Overrides io.
| |
| _getInt | back to summary |
|---|---|
| protected int _getInt(int index) Overrides io.
| |
| _getIntLE | back to summary |
|---|---|
| protected int _getIntLE(int index) Overrides io.
| |
| _getLong | back to summary |
|---|---|
| protected long _getLong(int index) Overrides io.
| |
| _getLongLE | back to summary |
|---|---|
| protected long _getLongLE(int index) Overrides io.
| |
| _getShort | back to summary |
|---|---|
| protected short _getShort(int index) Overrides io.
| |
| _getShortLE | back to summary |
|---|---|
| protected short _getShortLE(int index) Overrides io.
| |
| _getUnsignedMedium | back to summary |
|---|---|
| protected int _getUnsignedMedium(int index) Overrides io.
| |
| _getUnsignedMediumLE | back to summary |
|---|---|
| protected int _getUnsignedMediumLE(int index) Overrides io.
| |
| _setByte | back to summary |
|---|---|
| protected void _setByte(int index, int value) Overrides io.
| |
| _setInt | back to summary |
|---|---|
| protected void _setInt(int index, int value) Overrides io.
| |
| _setIntLE | back to summary |
|---|---|
| protected void _setIntLE(int index, int value) Overrides io.
| |
| _setLong | back to summary |
|---|---|
| protected void _setLong(int index, long value) Overrides io.
| |
| _setLongLE | back to summary |
|---|---|
| protected void _setLongLE(int index, long value) Overrides io.
| |
| _setMedium | back to summary |
|---|---|
| protected void _setMedium(int index, int value) Overrides io.
| |
| _setMediumLE | back to summary |
|---|---|
| protected void _setMediumLE(int index, int value) Overrides io.
| |
| _setShort | back to summary |
|---|---|
| protected void _setShort(int index, int value) Overrides io.
| |
| _setShortLE | back to summary |
|---|---|
| protected void _setShortLE(int index, int value) Overrides io.
| |
| allocateArray | back to summary |
|---|---|
| protected byte[] allocateArray(int initialCapacity) Overrides io.
| |
| getByte | back to summary |
|---|---|
| public byte getByte(int index) Overrides io. Doc from io. Gets a byte at the specified absolute
| |
| getInt | back to summary |
|---|---|
| public int getInt(int index) Overrides io. Doc from io. Gets a 32-bit integer at the specified absolute
| |
| getIntLE | back to summary |
|---|---|
| public int getIntLE(int index) Overrides io. Doc from io. Gets a 32-bit integer at the specified absolute
| |
| getLong | back to summary |
|---|---|
| public long getLong(int index) Overrides io. Doc from io. Gets a 64-bit long integer at the specified absolute
| |
| getLongLE | back to summary |
|---|---|
| public long getLongLE(int index) Overrides io. Doc from io. Gets a 64-bit long integer at the specified absolute
| |
| getShort | back to summary |
|---|---|
| public short getShort(int index) Overrides io. Doc from io. Gets a 16-bit short integer at the specified absolute
| |
| getShortLE | back to summary |
|---|---|
| public short getShortLE(int index) Overrides io. Doc from io. Gets a 16-bit short integer at the specified absolute
| |
| getUnsignedMedium | back to summary |
|---|---|
| public int getUnsignedMedium(int index) Overrides io. Doc from io. Gets an unsigned 24-bit medium integer at the specified absolute
| |
| getUnsignedMediumLE | back to summary |
|---|---|
| public int getUnsignedMediumLE(int index) Overrides io. Doc from io. Gets an unsigned 24-bit medium integer at the specified absolute
| |
| newSwappedByteBuf | back to summary |
|---|---|
| protected SwappedByteBuf newSwappedByteBuf() Overrides io. Doc from io. Deprecated
Creates a new
| |
| setByte | back to summary |
|---|---|
| public ByteBuf setByte(int index, int value) Overrides io. Doc from io. Sets the specified byte at the specified absolute
| |
| setInt | back to summary |
|---|---|
| public ByteBuf setInt(int index, int value) Overrides io. Doc from io. Sets the specified 32-bit integer at the specified absolute
| |
| setIntLE | back to summary |
|---|---|
| public ByteBuf setIntLE(int index, int value) Overrides io. Doc from io. Sets the specified 32-bit integer at the specified absolute
| |
| setLong | back to summary |
|---|---|
| public ByteBuf setLong(int index, long value) Overrides io. Doc from io. Sets the specified 64-bit long integer at the specified absolute
| |
| setLongLE | back to summary |
|---|---|
| public ByteBuf setLongLE(int index, long value) Overrides io. Doc from io. Sets the specified 64-bit long integer at the specified absolute
| |
| setMedium | back to summary |
|---|---|
| public ByteBuf setMedium(int index, int value) Overrides io. Doc from io. Sets the specified 24-bit medium integer at the specified absolute
| |
| setMediumLE | back to summary |
|---|---|
| public ByteBuf setMediumLE(int index, int value) Overrides io. Doc from io. Sets the specified 24-bit medium integer at the specified absolute
| |
| setShort | back to summary |
|---|---|
| public ByteBuf setShort(int index, int value) Overrides io. Doc from io. Sets the specified 16-bit short integer at the specified absolute
| |
| setShortLE | back to summary |
|---|---|
| public ByteBuf setShortLE(int index, int value) Overrides io. Doc from io. Sets the specified 16-bit short integer at the specified absolute
| |
| setZero | back to summary |
|---|---|
| public ByteBuf setZero(int index, int length) Overrides io. Doc from io. Fills this buffer with NUL (0x00) starting at the specified
absolute
| |
| writeZero | back to summary |
|---|---|
| public ByteBuf writeZero(int length) Overrides io. Doc from io. Fills this buffer with NUL (0x00) starting at the current
| |