Top Fields Constructors Methods
net.jpountz.util

public final Enum UnsafeUtils

extends Enum<UnsafeUtils>
Class Inheritance
Static Imports
net.jpountz.util.Utils.NATIVE_BYTE_ORDER

Field Summary

Modifier and TypeField and Description
private static final long
private static final int
private static final long
private static final int
private static final long
private static final int
private static final sun.misc.Unsafe

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
checkLength(int len)

public static void
checkRange(byte[] buf, int off)

public static void
checkRange(byte[] buf, int off, int len)

public static byte
readByte(byte[] src, int srcOff)

public static int
readInt(byte[] src, int srcOff)

public static int
readInt(int[] src, int srcOff)

public static int
readIntLE(byte[] src, int srcOff)

public static long
readLong(byte[] src, int srcOff)

public static long
readLongLE(byte[] src, int srcOff)

public static short
readShort(byte[] src, int srcOff)

public static int
readShort(short[] src, int srcOff)

public static int
readShortLE(byte[] src, int srcOff)

public static UnsafeUtils
public static UnsafeUtils[]
public static void
writeByte(byte[] src, int srcOff, byte value)

public static void
writeByte(byte[] src, int srcOff, int value)

public static void
writeInt(byte[] dest, int destOff, int value)

public static void
writeInt(int[] dest, int destOff, int value)

public static void
writeLong(byte[] dest, int destOff, long value)

public static void
writeShort(byte[] dest, int destOff, short value)

public static void
writeShort(short[] dest, int destOff, int value)

public static void
writeShortLE(byte[] buf, int off, int v)

Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

BYTE_ARRAY_OFFSETback to summary
private static final long BYTE_ARRAY_OFFSET
BYTE_ARRAY_SCALEback to summary
private static final int BYTE_ARRAY_SCALE
INT_ARRAY_OFFSETback to summary
private static final long INT_ARRAY_OFFSET
INT_ARRAY_SCALEback to summary
private static final int INT_ARRAY_SCALE
SHORT_ARRAY_OFFSETback to summary
private static final long SHORT_ARRAY_OFFSET
SHORT_ARRAY_SCALEback to summary
private static final int SHORT_ARRAY_SCALE
UNSAFEback to summary
private static final sun.misc.Unsafe UNSAFE

Constructor Detail

UnsafeUtilsback to summary
private UnsafeUtils()

Method Detail

checkLengthback to summary
public static void checkLength(int len)
checkRangeback to summary
public static void checkRange(byte[] buf, int off)
checkRangeback to summary
public static void checkRange(byte[] buf, int off, int len)
readByteback to summary
public static byte readByte(byte[] src, int srcOff)
readIntback to summary
public static int readInt(byte[] src, int srcOff)
readIntback to summary
public static int readInt(int[] src, int srcOff)
readIntLEback to summary
public static int readIntLE(byte[] src, int srcOff)
readLongback to summary
public static long readLong(byte[] src, int srcOff)
readLongLEback to summary
public static long readLongLE(byte[] src, int srcOff)
readShortback to summary
public static short readShort(byte[] src, int srcOff)
readShortback to summary
public static int readShort(short[] src, int srcOff)
readShortLEback to summary
public static int readShortLE(byte[] src, int srcOff)
valueOfback to summary
public static UnsafeUtils valueOf(String name)
valuesback to summary
public static UnsafeUtils[] values()
writeByteback to summary
public static void writeByte(byte[] src, int srcOff, byte value)
writeByteback to summary
public static void writeByte(byte[] src, int srcOff, int value)
writeIntback to summary
public static void writeInt(byte[] dest, int destOff, int value)
writeIntback to summary
public static void writeInt(int[] dest, int destOff, int value)
writeLongback to summary
public static void writeLong(byte[] dest, int destOff, long value)
writeShortback to summary
public static void writeShort(byte[] dest, int destOff, short value)
writeShortback to summary
public static void writeShort(short[] dest, int destOff, int value)
writeShortLEback to summary
public static void writeShortLE(byte[] buf, int off, int v)