public class ByteArrayUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
getBoolean(byte[] b) |
static boolean |
getBoolean(byte[] b,
int off) |
static double |
getDouble(byte[] b) |
static double |
getDouble(byte[] b,
int off) |
static float |
getFloat(byte[] b) |
static float |
getFloat(byte[] b,
int off) |
static int |
getInt(byte[] b) |
static int |
getInt(byte[] b,
int off) |
static long |
getLong(byte[] b) |
static long |
getLong(byte[] b,
int off) |
static short |
getShort(byte[] b) |
static short |
getShort(byte[] b,
int off) |
static void |
putBoolean(byte[] b,
int off,
boolean val) |
static void |
putDouble(byte[] b,
int off,
double val)
Store a signed double at the given offset encoded as big endian
|
static void |
putFloat(byte[] b,
int off,
float val)
Store a signed float at the given offset encoded as big endian
|
static void |
putInt(byte[] b,
int off,
int val)
Store a signed int at the given offset encoded as big endian
|
static void |
putLong(byte[] b,
int off,
long val)
Store a signed long at the given offset encoded as big endian
|
static void |
putShort(byte[] b,
int off,
short val)
Store a signed short at the given offset encoded as big endian
|
public static boolean getBoolean(byte[] b)
public static boolean getBoolean(byte[] b, int off)
public static short getShort(byte[] b)
public static short getShort(byte[] b, int off)
public static int getInt(byte[] b)
public static int getInt(byte[] b, int off)
public static float getFloat(byte[] b)
public static float getFloat(byte[] b, int off)
public static long getLong(byte[] b)
public static long getLong(byte[] b, int off)
public static double getDouble(byte[] b)
public static double getDouble(byte[] b, int off)
public static void putBoolean(byte[] b, int off, boolean val)
public static void putShort(byte[] b, int off, short val)
public static void putInt(byte[] b, int off, int val)
public static void putFloat(byte[] b, int off, float val)
public static void putLong(byte[] b, int off, long val)
public static void putDouble(byte[] b, int off, double val)
Copyright © 2009-2020 The Apache Software Foundation