Class NumberReaders
- java.lang.Object
-
- org.openjdk.jmc.flightrecorder.internal.parser.v0.NumberReaders
-
class NumberReaders extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description NumberReaders()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static byte
readByte(byte[] bytes, Offset offset)
(package private) static double
readDouble(byte[] bytes, Offset offset)
(package private) static float
readFloat(byte[] bytes, Offset offset)
(package private) static int
readInt(byte[] bytes, Offset offset)
(package private) static long
readKey(byte[] data, Offset offset, DataType keyType)
(package private) static long
readLong(byte[] bytes, Offset offset)
(package private) static short
readShort(byte[] bytes, Offset offset)
-
-
-
Method Detail
-
readLong
static long readLong(byte[] bytes, Offset offset) throws InvalidJfrFileException
- Throws:
InvalidJfrFileException
-
readInt
static int readInt(byte[] bytes, Offset offset) throws InvalidJfrFileException
- Throws:
InvalidJfrFileException
-
readByte
static byte readByte(byte[] bytes, Offset offset) throws InvalidJfrFileException
- Throws:
InvalidJfrFileException
-
readShort
static short readShort(byte[] bytes, Offset offset) throws InvalidJfrFileException
- Throws:
InvalidJfrFileException
-
readFloat
static float readFloat(byte[] bytes, Offset offset) throws InvalidJfrFileException
- Throws:
InvalidJfrFileException
-
readDouble
static double readDouble(byte[] bytes, Offset offset) throws InvalidJfrFileException
- Throws:
InvalidJfrFileException
-
readKey
static long readKey(byte[] data, Offset offset, DataType keyType) throws InvalidJfrFileException
- Throws:
InvalidJfrFileException
-
-