Top Description Fields Constructors Methods
io.netty.buffer

pack-priv final Class UnsafeByteBufUtil

extends Object
Class Inheritance
Imports
io.netty.util.internal.PlatformDependent, java.io.IOException, .InputStream, .OutputStream, java.nio.ByteBuffer, .ByteOrder, .ReadOnlyBufferException

All operations get and set as ByteOrder#BIG_ENDIAN.

Field Summary

Modifier and TypeField and Description
private static final int
private static final boolean
private static final byte

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static void
batchSetZero(byte[] data, int index, int length)

private static void
batchSetZero(long addr, int length)

pack-priv static ByteBuf
copy(AbstractByteBuf buf, long addr, int index, int length)

pack-priv static byte
getByte(long address)

pack-priv static byte
getByte(byte[] array, int index)

pack-priv static void
getBytes(AbstractByteBuf buf, long addr, int index, ByteBuf dst, int dstIndex, int length)

pack-priv static void
getBytes(AbstractByteBuf buf, long addr, int index, byte[] dst, int dstIndex, int length)

pack-priv static void
getBytes(AbstractByteBuf buf, long addr, int index, ByteBuffer dst)

pack-priv static void
getBytes(AbstractByteBuf buf, long addr, int index, OutputStream out, int length)

private static void
getBytes(long inAddr, byte[] in, int inOffset, int inLen, OutputStream out, int outLen)

pack-priv static int
getInt(long address)

pack-priv static int
getInt(byte[] array, int index)

pack-priv static int
getIntLE(long address)

pack-priv static int
getIntLE(byte[] array, int index)

pack-priv static long
getLong(long address)

pack-priv static long
getLong(byte[] array, int index)

pack-priv static long
getLongLE(long address)

pack-priv static long
getLongLE(byte[] array, int index)

pack-priv static short
getShort(long address)

pack-priv static short
getShort(byte[] array, int index)

pack-priv static short
getShortLE(long address)

pack-priv static short
getShortLE(byte[] array, int index)

pack-priv static int
getUnsignedMedium(long address)

pack-priv static int
getUnsignedMedium(byte[] array, int index)

pack-priv static int
getUnsignedMediumLE(long address)

pack-priv static int
getUnsignedMediumLE(byte[] array, int index)

pack-priv static UnpooledUnsafeDirectByteBuf
newUnsafeDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)

pack-priv static void
setByte(long address, int value)

pack-priv static void
setByte(byte[] array, int index, int value)

pack-priv static int
setBytes(AbstractByteBuf buf, long addr, int index, InputStream in, int length)

pack-priv static void
setBytes(AbstractByteBuf buf, long addr, int index, ByteBuf src, int srcIndex, int length)

pack-priv static void
setBytes(AbstractByteBuf buf, long addr, int index, byte[] src, int srcIndex, int length)

pack-priv static void
setBytes(AbstractByteBuf buf, long addr, int index, ByteBuffer src)

pack-priv static void
setInt(long address, int value)

pack-priv static void
setInt(byte[] array, int index, int value)

pack-priv static void
setIntLE(long address, int value)

pack-priv static void
setIntLE(byte[] array, int index, int value)

pack-priv static void
setLong(long address, long value)

pack-priv static void
setLong(byte[] array, int index, long value)

pack-priv static void
setLongLE(long address, long value)

pack-priv static void
setLongLE(byte[] array, int index, long value)

pack-priv static void
setMedium(long address, int value)

pack-priv static void
setMedium(byte[] array, int index, int value)

pack-priv static void
setMediumLE(long address, int value)

pack-priv static void
setMediumLE(byte[] array, int index, int value)

pack-priv static void
setShort(long address, int value)

pack-priv static void
setShort(byte[] array, int index, int value)

pack-priv static void
setShortLE(long address, int value)

pack-priv static void
setShortLE(byte[] array, int index, int value)

private static void
setSingleBytes(final AbstractByteBuf buf, final long addr, final int index, final ByteBuffer src, final int length)

pack-priv static void
setZero(byte[] array, int index, int length)

pack-priv static void
setZero(long addr, int length)

private static int
zeroTillAligned(long addr, int length)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

MAX_HAND_ROLLED_SET_ZERO_BYTESback to summary
private static final int MAX_HAND_ROLLED_SET_ZERO_BYTES
UNALIGNEDback to summary
private static final boolean UNALIGNED
ZEROback to summary
private static final byte ZERO

Constructor Detail

UnsafeByteBufUtilback to summary
private UnsafeByteBufUtil()

Method Detail

batchSetZeroback to summary
private static void batchSetZero(byte[] data, int index, int length)
batchSetZeroback to summary
private static void batchSetZero(long addr, int length)
copyback to summary
pack-priv static ByteBuf copy(AbstractByteBuf buf, long addr, int index, int length)
getByteback to summary
pack-priv static byte getByte(long address)
getByteback to summary
pack-priv static byte getByte(byte[] array, int index)
getBytesback to summary
pack-priv static void getBytes(AbstractByteBuf buf, long addr, int index, ByteBuf dst, int dstIndex, int length)
getBytesback to summary
pack-priv static void getBytes(AbstractByteBuf buf, long addr, int index, byte[] dst, int dstIndex, int length)
getBytesback to summary
pack-priv static void getBytes(AbstractByteBuf buf, long addr, int index, ByteBuffer dst)
getBytesback to summary
pack-priv static void getBytes(AbstractByteBuf buf, long addr, int index, OutputStream out, int length) throws IOException
getBytesback to summary
private static void getBytes(long inAddr, byte[] in, int inOffset, int inLen, OutputStream out, int outLen) throws IOException
getIntback to summary
pack-priv static int getInt(long address)
getIntback to summary
pack-priv static int getInt(byte[] array, int index)
getIntLEback to summary
pack-priv static int getIntLE(long address)
getIntLEback to summary
pack-priv static int getIntLE(byte[] array, int index)
getLongback to summary
pack-priv static long getLong(long address)
getLongback to summary
pack-priv static long getLong(byte[] array, int index)
getLongLEback to summary
pack-priv static long getLongLE(long address)
getLongLEback to summary
pack-priv static long getLongLE(byte[] array, int index)
getShortback to summary
pack-priv static short getShort(long address)
getShortback to summary
pack-priv static short getShort(byte[] array, int index)
getShortLEback to summary
pack-priv static short getShortLE(long address)
getShortLEback to summary
pack-priv static short getShortLE(byte[] array, int index)
getUnsignedMediumback to summary
pack-priv static int getUnsignedMedium(long address)
getUnsignedMediumback to summary
pack-priv static int getUnsignedMedium(byte[] array, int index)
getUnsignedMediumLEback to summary
pack-priv static int getUnsignedMediumLE(long address)
getUnsignedMediumLEback to summary
pack-priv static int getUnsignedMediumLE(byte[] array, int index)
newUnsafeDirectByteBufback to summary
pack-priv static UnpooledUnsafeDirectByteBuf newUnsafeDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)
setByteback to summary
pack-priv static void setByte(long address, int value)
setByteback to summary
pack-priv static void setByte(byte[] array, int index, int value)
setBytesback to summary
pack-priv static int setBytes(AbstractByteBuf buf, long addr, int index, InputStream in, int length) throws IOException
setBytesback to summary
pack-priv static void setBytes(AbstractByteBuf buf, long addr, int index, ByteBuf src, int srcIndex, int length)
setBytesback to summary
pack-priv static void setBytes(AbstractByteBuf buf, long addr, int index, byte[] src, int srcIndex, int length)
setBytesback to summary
pack-priv static void setBytes(AbstractByteBuf buf, long addr, int index, ByteBuffer src)
setIntback to summary
pack-priv static void setInt(long address, int value)
setIntback to summary
pack-priv static void setInt(byte[] array, int index, int value)
setIntLEback to summary
pack-priv static void setIntLE(long address, int value)
setIntLEback to summary
pack-priv static void setIntLE(byte[] array, int index, int value)
setLongback to summary
pack-priv static void setLong(long address, long value)
setLongback to summary
pack-priv static void setLong(byte[] array, int index, long value)
setLongLEback to summary
pack-priv static void setLongLE(long address, long value)
setLongLEback to summary
pack-priv static void setLongLE(byte[] array, int index, long value)
setMediumback to summary
pack-priv static void setMedium(long address, int value)
setMediumback to summary
pack-priv static void setMedium(byte[] array, int index, int value)
setMediumLEback to summary
pack-priv static void setMediumLE(long address, int value)
setMediumLEback to summary
pack-priv static void setMediumLE(byte[] array, int index, int value)
setShortback to summary
pack-priv static void setShort(long address, int value)
setShortback to summary
pack-priv static void setShort(byte[] array, int index, int value)
setShortLEback to summary
pack-priv static void setShortLE(long address, int value)
setShortLEback to summary
pack-priv static void setShortLE(byte[] array, int index, int value)
setSingleBytesback to summary
private static void setSingleBytes(final AbstractByteBuf buf, final long addr, final int index, final ByteBuffer src, final int length)
setZeroback to summary
pack-priv static void setZero(byte[] array, int index, int length)
setZeroback to summary
pack-priv static void setZero(long addr, int length)
zeroTillAlignedback to summary
private static int zeroTillAligned(long addr, int length)