public class Bits
extends java.lang.Object
DataInputStream
und deren Verwandte ueberfluessig und ist dadurch
etwa doppelt so schnell.
Die Byte-Anordnung ist XDR, nich NDR (siehe WkbUtils
)Modifier and Type | Method and Description |
---|---|
static int |
getInt(byte[] b,
int off)
Liest ein int aus einem ByteArray.
|
static long |
getLong(byte[] b,
int off)
Liest ein long aus einem ByteArray.
|
static short |
getShort(byte[] b,
int off)
Liest ein short aus einem ByteArray.
|
static void |
putInt(byte[] b,
int off,
int val)
Schreibt ein int in ein ByteArray.
|
static void |
putLong(byte[] b,
int off,
long val)
Schreibt ein long in ein ByteArray.
|
static void |
putShort(byte[] b,
int off,
short val)
Schreibt ein short in ein ByteArray.
|
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 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 putLong(byte[] b, int off, long val)
b
- byte[] ByteArrayoff
- Offsetval
- float