Read RNTuple data blocks from a TFile container, provided by a RRawFile.
A RRawFile is used for the byte access. The class implements a minimal subset of TFile, enough to extract RNTuple data keys.
Definition at line 102 of file RMiniFile.hxx.
Public Member Functions | |
| RMiniFileReader ()=default | |
| RMiniFileReader (ROOT::Internal::RRawFile *rawFile) | |
| Uses the given raw file to read byte ranges.   | |
| RResult< RFileNTupleAnchor > | GetNTuple (std::string_view ntupleName) | 
| Extracts header and footer location for the RNTuple identified by ntupleName.   | |
| void | ReadBuffer (void *buffer, size_t nbytes, std::uint64_t offset) | 
| Reads a given byte range from the file into the provided memory buffer.   | |
Private Member Functions | |
| RResult< RFileNTupleAnchor > | GetNTupleBare (std::string_view ntupleName) | 
| Used when the file container turns out to be a bare file.   | |
| RResult< RFileNTupleAnchor > | GetNTupleProper (std::string_view ntupleName) | 
| Used when the file turns out to be a TFile container.   | |
Private Attributes | |
| bool | fIsBare = false | 
| Indicates whether the file is a TFile container or an RNTuple bare file.   | |
| ROOT::Internal::RRawFile * | fRawFile = nullptr | 
| The raw file used to read byte ranges.   | |
#include <ROOT/RMiniFile.hxx>
      
  | 
  default | 
      
  | 
  explicit | 
Uses the given raw file to read byte ranges.
Definition at line 978 of file RMiniFile.cxx.
| ROOT::Experimental::RResult< ROOT::Experimental::Internal::RFileNTupleAnchor > ROOT::Experimental::Internal::RMiniFileReader::GetNTuple | ( | std::string_view | ntupleName | ) | 
Extracts header and footer location for the RNTuple identified by ntupleName.
Definition at line 984 of file RMiniFile.cxx.
      
  | 
  private | 
Used when the file container turns out to be a bare file.
Definition at line 1058 of file RMiniFile.cxx.
      
  | 
  private | 
Used when the file turns out to be a TFile container.
Definition at line 995 of file RMiniFile.cxx.
| void ROOT::Experimental::Internal::RMiniFileReader::ReadBuffer | ( | void * | buffer, | 
| size_t | nbytes, | ||
| std::uint64_t | offset | ||
| ) | 
Reads a given byte range from the file into the provided memory buffer.
Definition at line 1080 of file RMiniFile.cxx.
      
  | 
  private | 
Indicates whether the file is a TFile container or an RNTuple bare file.
Definition at line 107 of file RMiniFile.hxx.
      
  | 
  private | 
The raw file used to read byte ranges.
Definition at line 105 of file RMiniFile.hxx.