32 auto classVersion = buf.
ReadVersion(&offClassBuf, &bcnt);
40 auto lenCkData = bcnt - lenStrip;
43 auto expectedChecksum = XXH3_64bits(buf.
Buffer() + offCkData, lenCkData);
45 std::uint64_t onDiskChecksum;
47 if (
static_cast<std::size_t
>(buf.
BufferSize()) < buf.
Length() +
sizeof(onDiskChecksum))
49 buf >> onDiskChecksum;
51 if (expectedChecksum != onDiskChecksum)
59 std::uint64_t checksum = XXH3_64bits(buf.
Buffer() + offCkData, buf.
Length() - offCkData);
65 std::uint16_t versionMinor, std::uint16_t versionPatch,
66 std::uint64_t seekHeader, std::uint64_t nbytesHeader,
67 std::uint64_t lenHeader, std::uint64_t seekFooter,
68 std::uint64_t nbytesFooter, std::uint64_t lenFooter,
69 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...
#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 meta-data.
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 new backported features from newer binary format versions.
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.
virtual Version_t ReadVersion(UInt_t *start=nullptr, UInt_t *bcnt=nullptr, const TClass *cl=nullptr)=0
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 ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
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)