Class DataInputToolkit
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.util.DataInputToolkit
-
public class DataInputToolkit extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static byteBOOLEAN_SIZEstatic byteBYTE_SIZEstatic byteCHAR_SIZEstatic byteDOUBLE_SIZEstatic byteFLOAT_SIZEstatic byteINTEGER_SIZEstatic byteLONG_SIZEstatic byteSHORT_SIZE
-
Constructor Summary
Constructors Constructor Description DataInputToolkit()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanreadBoolean(byte[] bytes, int offset)static bytereadByte(byte[] bytes, int offset)static charreadChar(byte[] bytes, int offset)static doublereadDouble(byte[] bytes, int offset)static floatreadFloat(byte[] bytes, int offset)static intreadInt(byte[] bytes, int index)static longreadLong(byte[] bytes, int index)static shortreadShort(byte[] bytes, int offset)static intreadUnsignedByte(byte[] bytes, int offset)static longreadUnsignedInt(byte[] bytes, int index)static intreadUnsignedShort(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)
-
-