public class Bits
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static float |
getFloat(byte[] b,
int off) |
static int |
getInt(byte[] b,
int off) |
static long |
getLong(byte[] b,
int off) |
static short |
getShort(byte[] b,
int off) |
static void |
putFloat(byte[] b,
int off,
float val) |
static void |
putInt(byte[] b,
int off,
int val) |
static void |
putLong(byte[] b,
int off,
long val) |
static void |
putShort(byte[] b,
int off,
short val) |
public static short getShort(byte[] b, int off)
b
- byte[]off
- int Offsetpublic static int getInt(byte[] b, int off)
b
- byte[]off
- int Offsetpublic static float getFloat(byte[] b, int off)
b
- byte[]off
- int Offsetpublic static long getLong(byte[] b, int off)
b
- byte[]off
- int Offsetpublic static void putShort(byte[] b, int off, short val)
b
- byte[] ByteArrayoff
- Offsetval
- shortpublic static void putInt(byte[] b, int off, int val)
b
- byte[] ByteArrayoff
- Offsetval
- intpublic static void putFloat(byte[] b, int off, float val)
b
- byte[] ByteArrayoff
- Offsetval
- floatpublic static void putLong(byte[] b, int off, long val)
b
- byte[] ByteArrayoff
- Offsetval
- float