Logo ROOT  
Reference Guide
ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple Struct Reference

Definition at line 153 of file RMiniFile.hxx.

Public Member Functions

 RFileSimple ()=default
 
 RFileSimple (const RFileSimple &other)=delete
 
 RFileSimple (RFileSimple &&other)=delete
 
 ~RFileSimple ()
 
 operator bool () const
 
RFileSimpleoperator= (const RFileSimple &other)=delete
 
RFileSimpleoperator= (RFileSimple &&other)=delete
 
void Write (const void *buffer, size_t nbytes, std::int64_t offset=-1)
 Writes bytes in the open stream, either at fFilePos or at the given offset. More...
 
std::uint64_t WriteKey (const void *buffer, std::size_t nbytes, std::size_t len, std::int64_t offset=-1, std::uint64_t directoryOffset=100, const std::string &className="", const std::string &objectName="", const std::string &title="")
 Writes a TKey including the data record, given by buffer, into fFile; returns the file offset to the payload. More...
 

Public Attributes

std::unique_ptr< ROOT::Experimental::Internal::RTFileControlBlockfControlBlock
 Keeps track of TFile control structures, which need to be updated on committing the data set. More...
 
FILE * fFile = nullptr
 For the simplest cases, a C file stream can be used for writing. More...
 
std::uint64_t fFilePos = 0
 Keeps track of the seek offset. More...
 

Constructor & Destructor Documentation

◆ RFileSimple() [1/3]

ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple::RFileSimple ( )
default

◆ RFileSimple() [2/3]

ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple::RFileSimple ( const RFileSimple other)
delete

◆ RFileSimple() [3/3]

ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple::RFileSimple ( RFileSimple &&  other)
delete

◆ ~RFileSimple()

ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple::~RFileSimple ( )

Definition at line 1023 of file RMiniFile.cxx.

Member Function Documentation

◆ operator bool()

ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple::operator bool ( ) const
inline

Definition at line 177 of file RMiniFile.hxx.

◆ operator=() [1/2]

RFileSimple & ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple::operator= ( const RFileSimple other)
delete

◆ operator=() [2/2]

RFileSimple & ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple::operator= ( RFileSimple &&  other)
delete

◆ Write()

void ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple::Write ( const void buffer,
size_t  nbytes,
std::int64_t  offset = -1 
)

Writes bytes in the open stream, either at fFilePos or at the given offset.

Definition at line 1030 of file RMiniFile.cxx.

◆ WriteKey()

std::uint64_t ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple::WriteKey ( const void buffer,
std::size_t  nbytes,
std::size_t  len,
std::int64_t  offset = -1,
std::uint64_t  directoryOffset = 100,
const std::string &  className = "",
const std::string &  objectName = "",
const std::string &  title = "" 
)

Writes a TKey including the data record, given by buffer, into fFile; returns the file offset to the payload.

The payload is already compressed

Definition at line 1050 of file RMiniFile.cxx.

Member Data Documentation

◆ fControlBlock

std::unique_ptr<ROOT::Experimental::Internal::RTFileControlBlock> ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple::fControlBlock

Keeps track of TFile control structures, which need to be updated on committing the data set.

Definition at line 159 of file RMiniFile.hxx.

◆ fFile

FILE* ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple::fFile = nullptr

For the simplest cases, a C file stream can be used for writing.

Definition at line 155 of file RMiniFile.hxx.

◆ fFilePos

std::uint64_t ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple::fFilePos = 0

Keeps track of the seek offset.

Definition at line 157 of file RMiniFile.hxx.

Collaboration diagram for ROOT::Experimental::Internal::RNTupleFileWriter::RFileSimple:
[legend]

The documentation for this struct was generated from the following files: