final class ArrayReader extends java.lang.Object implements IValueReader
Modifier and Type | Field and Description |
---|---|
private ChunkStructure |
header |
private IValueReader |
reader |
private static int |
UNREASONABLE_ARRAY_LENGTH |
Constructor and Description |
---|
ArrayReader(IValueReader reader,
ChunkStructure header) |
Modifier and Type | Method and Description |
---|---|
ContentType<?> |
getValueType() |
private static int |
readArraySize(byte[] data,
int offset) |
java.lang.Object |
readValue(byte[] bytes,
Offset offset,
long timestamp)
Reads an objects from a byte array starting at a given offset.
|
private final IValueReader reader
private final ChunkStructure header
private static final int UNREASONABLE_ARRAY_LENGTH
ArrayReader(IValueReader reader, ChunkStructure header)
public java.lang.Object readValue(byte[] bytes, Offset offset, long timestamp) throws InvalidJfrFileException
IValueReader
readValue
in interface IValueReader
offset
- the offset to start read from. Will be moved to the end of the parsed datatimestamp
- the timestamp of the object to readInvalidJfrFileException
private static int readArraySize(byte[] data, int offset) throws InvalidJfrFileException
InvalidJfrFileException
public ContentType<?> getValueType()
getValueType
in interface IValueReader