Module root_io::core::parsers [] [src]

Functions

c_string

Parse a null terminated string

checked_byte_count

Return the size in bytes of the following object in the input. The count is the remainder of this object minus the size of the count.

class_name_and_buffer

Figure out the class we are looking at. This parser immediately resolves possible references returning the name of the object in this buffer and the associated data. This function needs a Context, though, which may not be avialable. If so, have a look at the classinfo parser.

classinfo

Figure out the class we are looking at. The data might not be saved locally but rather in a reference to some other place in the buffer.This is modeled after ROOT's TBufferFile::ReadObjectAny and TBufferFile::ReadClass

decompress

Decompress the given buffer. Figures out the compression algorithm from the preceeding "magic" bytes

raw

Parse a Raw chunk from the given input buffer. This is usefull when one does not know the exact type at the time of parsing

raw_no_context

Same as raw but doesn't require a Context as input. Panics if a Context is required to parse the underlying buffer (i.e., the given buffer contains a reference to some other part of the file.

string

Read ROOT's version of short and long strings (preceeded by u8). Does not read null terminated!

tarrayd

Parse a so-called TArrayI. Note that ROOT's TArrays are actually not fixed size...

tarrayi

Parse a so-called TArrayI. Note that ROOT's TArrays are actually not fixed size...

tlist

Parse a TList

tnamed

Parser for TNamed objects

tobjarray

Parse a TObjArray

tobjarray_no_context

Parse a TObjArray which does not have references pointing outside of the input buffer

tobject

Parser for the most basic of ROOT types

tobjstring

Parser for TObjString