public class UnsafeUtils
extends java.lang.Object
| Constructor and Description |
|---|
UnsafeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copyMemory(byte[] srcBase,
long srcOff,
byte[] dstBase,
long dstOff,
long len) |
static byte |
get1(byte[] buf,
int off) |
static int |
get2(byte[] buf,
int off) |
static int |
get4(byte[] buf,
int off) |
static float |
get4f(byte[] buf,
int off) |
static long |
get8(byte[] buf,
int off) |
static double |
get8d(byte[] buf,
int off) |
static int |
set1(byte[] buf,
int off,
byte x) |
static int |
set2(byte[] buf,
int off,
short x) |
static int |
set4(byte[] buf,
int off,
int x) |
static int |
set4f(byte[] buf,
int off,
float f) |
static int |
set8(byte[] buf,
int off,
long x) |
static int |
set8d(byte[] buf,
int off,
double x) |
public static byte get1(byte[] buf,
int off)
public static int get2(byte[] buf,
int off)
public static int get4(byte[] buf,
int off)
public static long get8(byte[] buf,
int off)
public static float get4f(byte[] buf,
int off)
public static double get8d(byte[] buf,
int off)
public static int set1(byte[] buf,
int off,
byte x)
public static int set2(byte[] buf,
int off,
short x)
public static int set4(byte[] buf,
int off,
int x)
public static int set4f(byte[] buf,
int off,
float f)
public static int set8(byte[] buf,
int off,
long x)
public static int set8d(byte[] buf,
int off,
double x)
public static void copyMemory(byte[] srcBase,
long srcOff,
byte[] dstBase,
long dstOff,
long len)