Logo ROOT   6.18/05
Reference Guide
TBulkBranchRead.icc
Go to the documentation of this file.
1// Author: Brian Bockelman 14/06/17
2
3/*************************************************************************
4 * Copyright (C) 1995-2017, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11#ifndef ROOT_TBulkBranchRead_icc
12#define ROOT_TBulkBranchRead_icc
13
14//////////////////////////////////////////////////////////////////////////
15// //
16// TBulkBranchRead //
17// //
18// TBulkBranchRead is used to check if a branch supports bulk API; //
19// it also includes a set of API that allows reading serialized data //
20// directly into user-defined buffer without going through ROOT- //
21// deserialization code path by default. //
22//////////////////////////////////////////////////////////////////////////
23
24#include "ROOT/TBulkBranchRead.hxx" ///< A helper class for bulk IO (multiple events per call) operations.
25#include "TBranch.h"
26
27namespace ROOT {
28namespace Experimental {
29namespace Internal {
30
31
32inline Int_t TBulkBranchRead::GetBulkEntries(Long64_t evt, TBuffer& user_buf) { return fParent.GetBulkEntries(evt, user_buf); }
34inline Int_t TBulkBranchRead::GetEntriesSerialized(Long64_t evt, TBuffer& user_buf, TBuffer* count_buf) { return fParent.GetEntriesSerialized(evt, user_buf, count_buf); }
36
37} // Internal
38} // Experimental
39} // ROOT
40
41#endif // ROOT_TBulkBranchRead_icc
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
long long Long64_t
Definition: RtypesCore.h:69
Int_t GetEntriesSerialized(Long64_t evt, TBuffer &user_buf)
Int_t GetBulkEntries(Long64_t evt, TBuffer &user_buf)
Int_t GetEntriesSerialized(Long64_t N, TBuffer &user_buf)
Definition: TBranch.h:154
Int_t GetBulkEntries(Long64_t, TBuffer &)
Read as many events as possible into the given buffer, using zero-copy mechanisms.
Definition: TBranch.cxx:1426
Bool_t SupportsBulkRead() const
Returns true if this branch supports bulk IO, false otherwise.
Definition: TBranch.cxx:1401
Buffer base class used for serializing objects.
Definition: TBuffer.h:42
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21