Skip to content

Commit

Permalink
[ntuple] move RKeyBlob to ROOT::Experimental::Internal
Browse files Browse the repository at this point in the history
  • Loading branch information
silverweed committed May 29, 2024
1 parent 6708f15 commit f6ca650
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions tree/ntuple/v7/src/RMiniFile.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,18 @@ constexpr char const *kNTupleClassName = "ROOT::Experimental::RNTuple";

} // anonymous namespace

namespace ROOT {
namespace Experimental {
namespace Internal {
/// If a TFile container is written by a C stream (simple file), on dataset commit, the file header
/// and the TFile record need to be updated
struct RTFileControlBlock {
RTFHeader fHeader;
RTFFile fFileRecord;
std::uint64_t fSeekNTuple{0}; // Remember the offset for the keys list
std::uint64_t fSeekFileRecord{0};
};

/// The RKeyBlob writes an invisible key into a TFile. That is, a key that is not indexed in the list of keys,
/// like a TBasket.
/// NOTE: out of anonymous namespace because otherwise ClassDefInline fails to compile
Expand All @@ -1007,17 +1019,6 @@ class RKeyBlob : public TKey {
ClassDefInlineOverride(RKeyBlob, 0)
};

namespace ROOT {
namespace Experimental {
namespace Internal {
/// If a TFile container is written by a C stream (simple file), on dataset commit, the file header
/// and the TFile record need to be updated
struct RTFileControlBlock {
RTFHeader fHeader;
RTFFile fFileRecord;
std::uint64_t fSeekNTuple{0}; // Remember the offset for the keys list
std::uint64_t fSeekFileRecord{0};
};
} // namespace Internal
} // namespace Experimental
} // namespace ROOT
Expand Down

0 comments on commit f6ca650

Please sign in to comment.