Class DataInputToolkit
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.util.DataInputToolkit
-
public class DataInputToolkit extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static byte
BOOLEAN_SIZE
static byte
BYTE_SIZE
static byte
CHAR_SIZE
static byte
DOUBLE_SIZE
static byte
FLOAT_SIZE
static byte
INTEGER_SIZE
static byte
LONG_SIZE
static byte
SHORT_SIZE
-
Constructor Summary
Constructors Constructor Description DataInputToolkit()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
readBoolean(byte[] bytes, int offset)
static byte
readByte(byte[] bytes, int offset)
static char
readChar(byte[] bytes, int offset)
static double
readDouble(byte[] bytes, int offset)
static float
readFloat(byte[] bytes, int offset)
static int
readInt(byte[] bytes, int index)
static long
readLong(byte[] bytes, int index)
static short
readShort(byte[] bytes, int offset)
static int
readUnsignedByte(byte[] bytes, int offset)
static long
readUnsignedInt(byte[] bytes, int index)
static int
readUnsignedShort(byte[] bytes, int offset)
-
-
-
Field Detail
-
BYTE_SIZE
public static final byte BYTE_SIZE
- See Also:
- Constant Field Values
-
BOOLEAN_SIZE
public static final byte BOOLEAN_SIZE
- See Also:
- Constant Field Values
-
SHORT_SIZE
public static final byte SHORT_SIZE
- See Also:
- Constant Field Values
-
CHAR_SIZE
public static final byte CHAR_SIZE
- See Also:
- Constant Field Values
-
INTEGER_SIZE
public static final byte INTEGER_SIZE
- See Also:
- Constant Field Values
-
LONG_SIZE
public static final byte LONG_SIZE
- See Also:
- Constant Field Values
-
FLOAT_SIZE
public static final byte FLOAT_SIZE
- See Also:
- Constant Field Values
-
DOUBLE_SIZE
public static final byte DOUBLE_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
readUnsignedByte
public static int readUnsignedByte(byte[] bytes, int offset)
-
readByte
public static byte readByte(byte[] bytes, int offset)
-
readUnsignedShort
public static int readUnsignedShort(byte[] bytes, int offset)
-
readShort
public static short readShort(byte[] bytes, int offset)
-
readChar
public static char readChar(byte[] bytes, int offset)
-
readUnsignedInt
public static long readUnsignedInt(byte[] bytes, int index)
-
readInt
public static int readInt(byte[] bytes, int index)
-
readLong
public static long readLong(byte[] bytes, int index)
-
readFloat
public static float readFloat(byte[] bytes, int offset)
-
readDouble
public static double readDouble(byte[] bytes, int offset)
-
readBoolean
public static boolean readBoolean(byte[] bytes, int offset)
-
-