12 #ifndef ROOT_TBufferFile 13 #define ROOT_TBufferFile 43 class TActionSequence;
62 virtual void CheckCount(
UInt_t offset);
65 virtual void WriteObjectClass(
const void *actualObjStart,
const TClass *actualClass,
Bool_t cacheReuse);
68 enum { kStreamedMemberWise =
BIT(14) };
76 virtual Int_t CheckByteCount(
UInt_t startpos,
UInt_t bcnt,
const char *classname);
79 virtual void SkipVersion(
const TClass *cl = 0);
86 virtual void *ReadObjectAny(
const TClass* cast);
87 virtual void SkipObjectAny();
98 virtual void WriteBuf(
const void *buf,
Int_t max);
100 virtual char *ReadString(
char *
s,
Int_t max);
101 virtual void WriteString(
const char *s);
104 virtual void WriteClass(
const TClass *cl);
154 virtual void ReadFastArrayString(
Char_t *c,
Int_t n);
158 virtual void ReadFastArray(
Int_t *i,
Int_t n);
180 virtual void WriteArray(
const Int_t *i,
Int_t n);
191 virtual void WriteFastArray(
const Bool_t *b,
Int_t n);
192 virtual void WriteFastArray(
const Char_t *c,
Int_t n);
193 virtual void WriteFastArrayString(
const Char_t *c,
Int_t n);
197 virtual void WriteFastArray(
const Int_t *i,
Int_t n);
198 virtual void WriteFastArray(
const UInt_t *i,
Int_t n);
199 virtual void WriteFastArray(
const Long_t *l,
Int_t n);
210 virtual void StreamObject(
void *obj,
const std::type_info &typeinfo,
const TClass* onFileClass = 0 );
211 virtual void StreamObject(
void *obj,
const char *className,
const TClass* onFileClass = 0 );
212 virtual void StreamObject(
void *obj,
const TClass *cl,
const TClass* onFileClass = 0 );
213 virtual void StreamObject(
TObject *obj);
215 virtual void ReadBool(
Bool_t &b);
216 virtual void ReadChar(
Char_t &c);
217 virtual void ReadUChar(
UChar_t &c);
218 virtual void ReadShort(
Short_t &s);
219 virtual void ReadUShort(
UShort_t &s);
220 virtual void ReadInt(
Int_t &i);
221 virtual void ReadUInt(
UInt_t &i);
222 virtual void ReadLong(
Long_t &l);
223 virtual void ReadULong(
ULong_t &l);
224 virtual void ReadLong64(
Long64_t &l);
226 virtual void ReadFloat(
Float_t &f);
227 virtual void ReadDouble(
Double_t &d);
228 virtual void ReadCharP(
Char_t *c);
230 virtual void ReadStdString(std::string *s);
232 virtual void ReadCharStar(
char* &s);
234 virtual void WriteBool(
Bool_t b);
235 virtual void WriteChar(
Char_t c);
236 virtual void WriteUChar(
UChar_t c);
237 virtual void WriteShort(
Short_t s);
238 virtual void WriteUShort(
UShort_t s);
239 virtual void WriteInt(
Int_t i);
240 virtual void WriteUInt(
UInt_t i);
241 virtual void WriteLong(
Long_t l);
242 virtual void WriteULong(
ULong_t l);
243 virtual void WriteLong64(
Long64_t l);
245 virtual void WriteFloat(
Float_t f);
246 virtual void WriteDouble(
Double_t d);
247 virtual void WriteCharP(
const Char_t *c);
248 virtual void WriteTString(
const TString &s);
250 virtual void WriteStdString(
const std::string *s);
251 virtual void WriteCharStar(
char *s);
254 virtual Int_t ReadClassEmulated(
const TClass *cl,
void *
object,
const TClass *onfile_class);
255 virtual Int_t ReadClassBuffer(
const TClass *cl,
void *pointer,
const TClass *onfile_class);
257 virtual Int_t WriteClassBuffer(
const TClass *cl,
void *pointer);
273 if (fBufCur +
sizeof(
UChar_t) > fBufMax) AutoExpand(fBufSize+
sizeof(
UChar_t));
280 if (fBufCur +
sizeof(
Char_t) > fBufMax) AutoExpand(fBufSize+
sizeof(
Char_t));
287 if (fBufCur +
sizeof(
UChar_t) > fBufMax) AutoExpand(fBufSize+
sizeof(
UChar_t));
294 if (fBufCur +
sizeof(
Short_t) > fBufMax) AutoExpand(fBufSize+
sizeof(
Short_t));
301 if (fBufCur +
sizeof(
UShort_t) > fBufMax) AutoExpand(fBufSize+
sizeof(
UShort_t));
308 if (fBufCur +
sizeof(
Int_t) > fBufMax) AutoExpand(fBufSize+
sizeof(
Int_t));
315 if (fBufCur +
sizeof(
UInt_t) > fBufMax) AutoExpand(fBufSize+
sizeof(
UInt_t));
322 if (fBufCur +
sizeof(
Long_t) > fBufMax) AutoExpand(fBufSize+
sizeof(
Long_t));
329 if (fBufCur +
sizeof(
ULong_t) > fBufMax) AutoExpand(fBufSize+
sizeof(
ULong_t));
336 if (fBufCur +
sizeof(
Long64_t) > fBufMax) AutoExpand(fBufSize+
sizeof(
Long64_t));
350 if (fBufCur +
sizeof(
Float_t) > fBufMax) AutoExpand(fBufSize+
sizeof(
Float_t));
357 if (fBufCur +
sizeof(
Double_t) > fBufMax) AutoExpand(fBufSize+
sizeof(
Double_t));
Describe Streamer information for one class version.
void frombuf(char *&buf, Bool_t *x)
virtual Int_t ReadArray(Bool_t *&b)
Read array of bools from the I/O buffer.
The concrete implementation of TBuffer for writing/reading to/from a ROOT file or socket...
char *(* ReAllocCharFun_t)(char *, size_t, size_t)
std::vector< TStreamerInfo * > InfoList_t
virtual void ReadChar(Char_t &c)
virtual void ClassMember(const char *, const char *=0, Int_t=-1, Int_t=-1)
virtual void ReadUInt(UInt_t &i)
virtual void ReadLong(Long_t &l)
Read Long from TBuffer.
virtual void WriteBool(Bool_t b)
INLINE_TEMPLATE_ARGS Int_t ReadTString(TBuffer &buf, void *addr, const TConfiguration *config)
virtual void WriteULong(ULong_t l)
virtual void WriteULong64(ULong64_t l)
virtual void ReadFloat(Float_t &f)
virtual void WriteUChar(UChar_t c)
virtual void WriteUShort(UShort_t s)
virtual void ReadLong64(Long64_t &l)
virtual void ReadInt(Int_t &i)
#define ClassDef(name, id)
virtual void ReadStdString(std::string *s)=0
virtual void SetStreamerElementNumber(TStreamerElement *, Int_t)
virtual void ReadUChar(UChar_t &c)
void tobuf(char *&buf, Bool_t x)
virtual void WriteShort(Short_t s)
virtual void ReadULong64(ULong64_t &l)
virtual void WriteUInt(UInt_t i)
virtual Int_t ReadStaticArray(Bool_t *b)
Read array of bools from the I/O buffer.
Wrapper around an object and giving indirect access to its content even if the object is not of a cla...
The ROOT global object gROOT contains a list of all defined classes.
virtual void WriteInt(Int_t i)
virtual void ReadCharP(Char_t *c)
virtual void ClassEnd(const TClass *)
virtual void WriteFloat(Float_t f)
virtual Bool_t CheckObject(const TObject *obj)
Check if the specified object is already in the buffer.
virtual void WriteArray(const Bool_t *b, Int_t n)
Write array of n bools into the I/O buffer.
virtual void WriteLong(Long_t l)
unsigned long long ULong64_t
virtual void WriteDouble(Double_t d)
static constexpr double s
Binding & operator=(OUT(*fun)(void))
Mother of all ROOT objects.
virtual void ReadBool(Bool_t &b)
virtual void WriteCharP(const Char_t *c)
virtual void WriteLong64(Long64_t l)
Direct subclass of TBuffer, implements common methods for TBufferFile and TBufferText classes...
virtual void ClassBegin(const TClass *, Version_t=-1)
virtual void WriteFastArray(const Bool_t *b, Int_t n)
Write array of n bools into the I/O buffer.
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
virtual void ReadUShort(UShort_t &s)
InfoList_t fInfoStack
Stack of pointers to the TStreamerInfos.
virtual void ReadShort(Short_t &s)
Abstract Interface class describing Streamer information for one class.
TVirtualStreamerInfo * GetInfo()
virtual void ReadULong(ULong_t &l)
virtual void WriteStdString(const std::string *s)=0
virtual void WriteChar(Char_t c)
virtual void ReadFastArray(Bool_t *b, Int_t n)
Read array of n bools from the I/O buffer.
virtual void ReadDouble(Double_t &d)