31 std::uint64_t expectedChecksum = XXH3_64bits(buf.
Buffer() + offCkData, buf.
Length() - offCkData);
33 std::uint64_t onDiskChecksum;
34 if (
static_cast<std::size_t
>(buf.
BufferSize()) < buf.
Length() +
sizeof(onDiskChecksum))
35 throw RException(
R__FAIL(
"the buffer containing RNTuple is too small to contain the checksum!"));
36 buf >> onDiskChecksum;
38 if (expectedChecksum != onDiskChecksum)
46 std::uint64_t checksum = XXH3_64bits(buf.
Buffer() + offCkData, buf.
Length() - offCkData);
53 std::uint16_t versionPatch, std::uint64_t seekHeader, std::uint64_t nbytesHeader,
54 std::uint64_t lenHeader, std::uint64_t seekFooter, std::uint64_t nbytesFooter,
55 std::uint64_t lenFooter, std::uint64_t maxKeySize)
#define R__FAIL(msg)
Short-hand to return an RResult<T> in an error state; the RError is implicitly converted into RResult...
short Version_t
Class version identifier (short)
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int)
#define R__ASSERT(e)
Checks condition e and reports a fatal error if it's false.
Base class for all ROOT issued exceptions.
Representation of an RNTuple data set in a ROOT file.
std::uint64_t fSeekFooter
The file offset of the footer excluding the TKey part.
std::uint64_t fNBytesFooter
The size of the compressed ntuple footer.
std::uint16_t fVersionMinor
Changing the minor version indicates new optional fields added to the RNTuple metadata.
std::uint64_t fSeekHeader
The file offset of the header excluding the TKey part.
std::uint64_t fMaxKeySize
The maximum size for a TKey payload. Payloads bigger than this size will be written as multiple blobs...
std::uint64_t fNBytesHeader
The size of the compressed ntuple header.
std::uint64_t fLenHeader
The size of the uncompressed ntuple header.
std::uint64_t fLenFooter
The size of the uncompressed ntuple footer.
std::uint16_t fVersionPatch
Changing the patch version indicates clarifications or new backported features from newer binary form...
TFile * fFile
! The file from which the ntuple was streamed, registered in the custom streamer
std::uint16_t fVersionMajor
Changing the major version indicates forward incompatible changes; such changes should correspond to ...
std::uint16_t fVersionEpoch
Version of the RNTuple binary format that the writer supports (see specification).
Buffer base class used for serializing objects.
TObject * GetParent() const
Return pointer to parent of this buffer.
virtual Int_t ReadClassBuffer(const TClass *cl, void *pointer, const TClass *onfile_class=nullptr)=0
virtual Int_t WriteClassBuffer(const TClass *cl, void *pointer)=0
A file, usually with extension .root, that stores data and code in the form of serialized objects in ...
virtual Bool_t InheritsFrom(const char *classname) const
Returns kTRUE if object inherits from class "classname".
RNTuple CreateAnchor(std::uint16_t versionEpoch, std::uint16_t versionMajor, std::uint16_t versionMinor, std::uint16_t versionPatch, std::uint64_t seekHeader, std::uint64_t nbytesHeader, std::uint64_t lenHeader, std::uint64_t seekFooter, std::uint64_t nbytesFooter, std::uint64_t lenFooter, std::uint64_t maxKeySize)