internal String8 rntuple_description(Arena *arena, const RNTuple_Anchor &anchor) { String8 desc = push_str8f(arena, "version %u.%u.%u.%u", anchor.fVersionEpoch, anchor.fVersionMajor, anchor.fVersionMinor, anchor.fVersionPatch); return desc; } internal RNTuple_Info get_rntuple_info(const char *fname, const char *ntpl_name) { RNTuple_Info info = {}; // TODO: proper error handling RMicroFileReader file_reader { fname }; RNTuple_File_Info file_info = file_reader.GetNTupleProper(ntpl_name); if (!file_info.failed) { info.rng_header.start = file_info.anchor.fSeekHeader; info.rng_header.len = file_info.anchor.fNBytesHeader; info.rng_footer.start = file_info.anchor.fSeekFooter; info.rng_footer.len = file_info.anchor.fNBytesFooter; info.rng_anchor.start = file_info.anchor_seek; info.rng_anchor.len = file_info.anchor_nbytes; info.rng_anchor_key.start = file_info.anchor_key_seek; info.rng_anchor_key.len = file_info.anchor_key_nbytes; info.rblob_header_size = file_info.rblob_key_header_nbytes; info.root_file_header_size = file_info.tfile_header_nbytes; } return info; }