ROOT » CORE » BASE » TBuffer

class TBuffer: public TObject


TBuffer

Buffer base class used for serializing objects.


Function Members (Methods)

 
    This is an abstract class, constructors will not be documented.
    Look at the header to check for available constructors.

public:
virtual~TBuffer()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual Int_tApplySequence(const TStreamerInfoActions::TActionSequence& sequence, void* object)
virtual Int_tApplySequence(const TStreamerInfoActions::TActionSequence& sequence, void* start_collection, void* end_collection)
virtual Int_tApplySequenceVecPtr(const TStreamerInfoActions::TActionSequence& sequence, void* start_collection, void* end_collection)
voidAutoExpand(Int_t size_needed)
virtual voidTObject::Browse(TBrowser* b)
char*Buffer() const
Int_tBufferSize() const
virtual Int_tCheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass* clss)
virtual Int_tCheckByteCount(UInt_t startpos, UInt_t bcnt, const char* classname)
virtual Bool_tCheckObject(const TObject* obj)
virtual Bool_tCheckObject(const void* obj, const TClass* ptrClass)
static TClass*Class()
virtual voidClassBegin(const TClass*, Version_t = -1)
virtual voidClassEnd(const TClass*)
virtual voidClassMember(const char*, const char* = 0, Int_t = -1, Int_t = -1)
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tTObject::Compare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidDecrementLevel(TVirtualStreamerInfo*)
virtual voidTObject::Delete(Option_t* option = "")MENU
voidDetachBuffer()
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
voidExpand(Int_t newsize, Bool_t copy = kTRUE)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
virtual voidForceWriteInfo(TVirtualStreamerInfo* info, Bool_t force)
virtual voidForceWriteInfoClones(TClonesArray* a)
virtual Int_tGetBufferDisplacement() const
Int_tGetBufferVersion() const
static TClass*GetClass(const type_info& typeinfo)
static TClass*GetClass(const char* className)
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
virtual const char*TObject::GetIconName() const
virtual TVirtualStreamerInfo*GetInfo()
virtual TProcessID*GetLastProcessID(TRefTable* reftable) const
virtual Int_tGetMapCount() const
virtual voidGetMappedObject(UInt_t tag, void*& ptr, TClass*& ClassPtr) const
virtual const char*TObject::GetName() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TObject*GetParent() const
virtual UShort_tGetPidOffset() const
ReAllocCharFun_tGetReAllocFunc() const
virtual const char*TObject::GetTitle() const
virtual UInt_tGetTRefExecId()
virtual UInt_tTObject::GetUniqueID() const
virtual Int_tGetVersionOwner() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidIncrementLevel(TVirtualStreamerInfo* info)
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidInitMap()
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
Bool_tIsReading() const
virtual Bool_tTObject::IsSortable() const
Bool_tIsWriting() const
Bool_tTObject::IsZombie() const
Int_tLength() const
virtual voidTObject::ls(Option_t* option = "") const
virtual voidMapObject(const TObject* obj, UInt_t offset = 1)
virtual voidMapObject(const void* obj, const TClass* cl, UInt_t offset = 1)
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
voidTObject::operator delete(void* ptr)
voidTObject::operator delete(void* ptr, void* vp)
voidTObject::operator delete[](void* ptr)
voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
virtual voidTObject::Paint(Option_t* option = "")
virtual TVirtualArray*PeekDataCache() const
virtual voidTObject::Pop()
virtual TVirtualArray*PopDataCache()
virtual voidTObject::Print(Option_t* option = "") const
virtual voidPushDataCache(TVirtualArray*)
virtual Int_tReadArray(Bool_t*& b)
virtual Int_tReadArray(Char_t*& c)
virtual Int_tReadArray(UChar_t*& c)
virtual Int_tReadArray(Short_t*& h)
virtual Int_tReadArray(UShort_t*& h)
virtual Int_tReadArray(Int_t*& i)
virtual Int_tReadArray(UInt_t*& i)
virtual Int_tReadArray(Long_t*& l)
virtual Int_tReadArray(ULong_t*& l)
virtual Int_tReadArray(Long64_t*& l)
virtual Int_tReadArray(ULong64_t*& l)
virtual Int_tReadArray(Float_t*& f)
virtual Int_tReadArray(Double_t*& d)
virtual Int_tReadArrayDouble32(Double_t*& d, TStreamerElement* ele = 0)
virtual Int_tReadArrayFloat16(Float_t*& f, TStreamerElement* ele = 0)
virtual voidReadBool(Bool_t& b)
virtual Int_tReadBuf(void* buf, Int_t max)
virtual voidReadChar(Char_t& c)
virtual voidReadCharP(Char_t* c)
virtual TClass*ReadClass(const TClass* cl = 0, UInt_t* objTag = 0)
virtual Int_tReadClassBuffer(const TClass* cl, void* pointer, const TClass* onfile_class = 0)
virtual Int_tReadClassBuffer(const TClass* cl, void* pointer, Int_t version, UInt_t start, UInt_t count, const TClass* onfile_class = 0)
virtual Int_tReadClassEmulated(const TClass* cl, void* object, const TClass* onfile_class = 0)
virtual Int_tReadClones(TClonesArray* a, Int_t nobjects, Version_t objvers)
virtual voidReadDouble(Double_t& d)
virtual voidReadDouble32(Double_t* d, TStreamerElement* ele = 0)
virtual voidReadFastArray(Bool_t* b, Int_t n)
virtual voidReadFastArray(Char_t* c, Int_t n)
virtual voidReadFastArray(UChar_t* c, Int_t n)
virtual voidReadFastArray(Short_t* h, Int_t n)
virtual voidReadFastArray(UShort_t* h, Int_t n)
virtual voidReadFastArray(Int_t* i, Int_t n)
virtual voidReadFastArray(UInt_t* i, Int_t n)
virtual voidReadFastArray(Long_t* l, Int_t n)
virtual voidReadFastArray(ULong_t* l, Int_t n)
virtual voidReadFastArray(Long64_t* l, Int_t n)
virtual voidReadFastArray(ULong64_t* l, Int_t n)
virtual voidReadFastArray(Float_t* f, Int_t n)
virtual voidReadFastArray(Double_t* d, Int_t n)
virtual voidReadFastArray(void* start, const TClass* cl, Int_t n = 1, TMemberStreamer* s = 0, const TClass* onFileClass = 0)
virtual voidReadFastArray(void** startp, const TClass* cl, Int_t n = 1, Bool_t isPreAlloc = kFALSE, TMemberStreamer* s = 0, const TClass* onFileClass = 0)
virtual voidReadFastArrayDouble32(Double_t* d, Int_t n, TStreamerElement* ele = 0)
virtual voidReadFastArrayFloat16(Float_t* f, Int_t n, TStreamerElement* ele = 0)
virtual voidReadFastArrayString(Char_t* c, Int_t n)
virtual voidReadFastArrayWithFactor(Float_t* ptr, Int_t n, Double_t factor, Double_t minvalue)
virtual voidReadFastArrayWithFactor(Double_t* ptr, Int_t n, Double_t factor, Double_t minvalue)
virtual voidReadFastArrayWithNbits(Float_t* ptr, Int_t n, Int_t nbits)
virtual voidReadFastArrayWithNbits(Double_t* ptr, Int_t n, Int_t nbits)
virtual voidReadFloat(Float_t& f)
virtual voidReadFloat16(Float_t* f, TStreamerElement* ele = 0)
virtual voidReadInt(Int_t& i)
virtual voidReadLong(Long_t& l)
virtual voidReadLong64(Long64_t& l)
virtual TObject*ReadObject(const TClass* cl)
virtual void*ReadObjectAny(const TClass* cast)
virtual TProcessID*ReadProcessID(UShort_t pidf)
virtual voidReadShort(Short_t& s)
virtual Int_tReadStaticArray(Bool_t* b)
virtual Int_tReadStaticArray(Char_t* c)
virtual Int_tReadStaticArray(UChar_t* c)
virtual Int_tReadStaticArray(Short_t* h)
virtual Int_tReadStaticArray(UShort_t* h)
virtual Int_tReadStaticArray(Int_t* i)
virtual Int_tReadStaticArray(UInt_t* i)
virtual Int_tReadStaticArray(Long_t* l)
virtual Int_tReadStaticArray(ULong_t* l)
virtual Int_tReadStaticArray(Long64_t* l)
virtual Int_tReadStaticArray(ULong64_t* l)
virtual Int_tReadStaticArray(Float_t* f)
virtual Int_tReadStaticArray(Double_t* d)
virtual Int_tReadStaticArrayDouble32(Double_t* d, TStreamerElement* ele = 0)
virtual Int_tReadStaticArrayFloat16(Float_t* f, TStreamerElement* ele = 0)
virtual char*ReadString(char* s, Int_t max)
virtual voidReadTString(TString& s)
virtual voidReadUChar(UChar_t& c)
virtual voidReadUInt(UInt_t& i)
virtual voidReadULong(ULong_t& l)
virtual voidReadULong64(ULong64_t& l)
virtual voidReadUShort(UShort_t& s)
virtual Version_tReadVersion(UInt_t* start = 0, UInt_t* bcnt = 0, const TClass* cl = 0)
virtual Version_tReadVersionForMemberWise(const TClass* cl = 0)
virtual Version_tReadVersionNoCheckSum(UInt_t* start = 0, UInt_t* bcnt = 0)
virtual voidReadWithFactor(Float_t* ptr, Double_t factor, Double_t minvalue)
virtual voidReadWithFactor(Double_t* ptr, Double_t factor, Double_t minvalue)
virtual voidReadWithNbits(Float_t* ptr, Int_t nbits)
virtual voidReadWithNbits(Double_t* ptr, Int_t nbits)
virtual voidTObject::RecursiveRemove(TObject* obj)
virtual voidReset()
voidTObject::ResetBit(UInt_t f)
virtual voidResetMap()
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetBuffer(void* buf, UInt_t bufsiz = 0, Bool_t adopt = kTRUE, ReAllocCharFun_t reallocfunc = 0)
virtual voidSetBufferDisplacement()
virtual voidSetBufferDisplacement(Int_t skipped)
voidSetBufferOffset(Int_t offset = 0)
virtual voidSetByteCount(UInt_t cntpos, Bool_t packInVersion = kFALSE)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetParent(TObject* parent)
virtual voidSetPidOffset(UShort_t offset)
voidSetReadMode()
virtual voidSetReadParam(Int_t mapsize)
voidSetReAllocFunc(ReAllocCharFun_t reallocfunc = 0)
virtual voidSetStreamerElementNumber(Int_t)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetWriteMode()
virtual voidSetWriteParam(Int_t mapsize)
virtual voidShowMembers(TMemberInspector& insp) const
virtual voidSkipObjectAny()
virtual voidSkipVersion(const TClass* cl = 0)
virtual voidStreamer(TBuffer&)
voidStreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b)
virtual voidStreamObject(TObject* obj)
virtual voidStreamObject(void* obj, const type_info& typeinfo, const TClass* onFileClass = 0)
virtual voidStreamObject(void* obj, const char* className, const TClass* onFileClass = 0)
virtual voidStreamObject(void* obj, const TClass* cl, const TClass* onFileClass = 0)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
virtual voidTagStreamerInfo(TVirtualStreamerInfo* info)
TBuffer(TBuffer::EMode mode)
TBuffer(TBuffer::EMode mode, Int_t bufsiz)
TBuffer(TBuffer::EMode mode, Int_t bufsiz, void* buf, Bool_t adopt = kTRUE, ReAllocCharFun_t reallocfunc = 0)
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual voidWriteArray(const Bool_t* b, Int_t n)
virtual voidWriteArray(const Char_t* c, Int_t n)
virtual voidWriteArray(const UChar_t* c, Int_t n)
virtual voidWriteArray(const Short_t* h, Int_t n)
virtual voidWriteArray(const UShort_t* h, Int_t n)
virtual voidWriteArray(const Int_t* i, Int_t n)
virtual voidWriteArray(const UInt_t* i, Int_t n)
virtual voidWriteArray(const Long_t* l, Int_t n)
virtual voidWriteArray(const ULong_t* l, Int_t n)
virtual voidWriteArray(const Long64_t* l, Int_t n)
virtual voidWriteArray(const ULong64_t* l, Int_t n)
virtual voidWriteArray(const Float_t* f, Int_t n)
virtual voidWriteArray(const Double_t* d, Int_t n)
virtual voidWriteArrayDouble32(const Double_t* d, Int_t n, TStreamerElement* ele = 0)
virtual voidWriteArrayFloat16(const Float_t* f, Int_t n, TStreamerElement* ele = 0)
virtual voidWriteBool(Bool_t b)
virtual voidWriteBuf(const void* buf, Int_t max)
virtual voidWriteChar(Char_t c)
virtual voidWriteCharP(const Char_t* c)
virtual voidWriteClass(const TClass* cl)
virtual Int_tWriteClassBuffer(const TClass* cl, void* pointer)
virtual Int_tWriteClones(TClonesArray* a, Int_t nobjects)
virtual voidWriteDouble(Double_t d)
virtual voidWriteDouble32(Double_t* d, TStreamerElement* ele = 0)
virtual voidWriteFastArray(const Bool_t* b, Int_t n)
virtual voidWriteFastArray(const Char_t* c, Int_t n)
virtual voidWriteFastArray(const UChar_t* c, Int_t n)
virtual voidWriteFastArray(const Short_t* h, Int_t n)
virtual voidWriteFastArray(const UShort_t* h, Int_t n)
virtual voidWriteFastArray(const Int_t* i, Int_t n)
virtual voidWriteFastArray(const UInt_t* i, Int_t n)
virtual voidWriteFastArray(const Long_t* l, Int_t n)
virtual voidWriteFastArray(const ULong_t* l, Int_t n)
virtual voidWriteFastArray(const Long64_t* l, Int_t n)
virtual voidWriteFastArray(const ULong64_t* l, Int_t n)
virtual voidWriteFastArray(const Float_t* f, Int_t n)
virtual voidWriteFastArray(const Double_t* d, Int_t n)
virtual voidWriteFastArray(void* start, const TClass* cl, Int_t n = 1, TMemberStreamer* s = 0)
virtual Int_tWriteFastArray(void** startp, const TClass* cl, Int_t n = 1, Bool_t isPreAlloc = kFALSE, TMemberStreamer* s = 0)
virtual voidWriteFastArrayDouble32(const Double_t* d, Int_t n, TStreamerElement* ele = 0)
virtual voidWriteFastArrayFloat16(const Float_t* f, Int_t n, TStreamerElement* ele = 0)
virtual voidWriteFastArrayString(const Char_t* c, Int_t n)
virtual voidWriteFloat(Float_t f)
virtual voidWriteFloat16(Float_t* f, TStreamerElement* ele = 0)
virtual voidWriteInt(Int_t i)
virtual voidWriteLong(Long_t l)
virtual voidWriteLong64(Long64_t l)
virtual voidWriteObject(const TObject* obj)
virtual Int_tWriteObjectAny(const void* obj, const TClass* ptrClass)
virtual UShort_tWriteProcessID(TProcessID* pid)
virtual voidWriteShort(Short_t s)
virtual voidWriteString(const char* s)
virtual voidWriteTString(const TString& s)
virtual voidWriteUChar(UChar_t c)
virtual voidWriteUInt(UInt_t i)
virtual voidWriteULong(ULong_t l)
virtual voidWriteULong64(ULong64_t l)
virtual voidWriteUShort(UShort_t s)
virtual UInt_tWriteVersion(const TClass* cl, Bool_t useBcnt = kFALSE)
virtual UInt_tWriteVersionMemberWise(const TClass* cl, Bool_t useBcnt = kFALSE)
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()
voidoperator=(const TBuffer&)
virtual Int_tRead(const char* name)
TBuffer()
TBuffer(const TBuffer&)
virtual Int_tWrite(const char* name, Int_t opt, Int_t bufs)
virtual Int_tWrite(const char* name, Int_t opt, Int_t bufs) const

Data Members

public:
static TObject::<anonymous>TObject::kBitMask
static TObject::EStatusBitsTObject::kCanDelete
static TBuffer::<anonymous>kCannotHandleMemberWiseStreaming
static TObject::EStatusBitsTObject::kCannotPick
static TObject::EStatusBitsTObject::kHasUUID
static TBuffer::<anonymous>kInitialSize
static TObject::EStatusBitsTObject::kInvalidObject
static TObject::<anonymous>TObject::kIsOnHeap
static TBuffer::<anonymous>kIsOwner
static TObject::EStatusBitsTObject::kIsReferenced
static TBuffer::<anonymous>kMinimalSize
static TObject::EStatusBitsTObject::kMustCleanup
static TObject::EStatusBitsTObject::kNoContextMenu
static TObject::<anonymous>TObject::kNotDeleted
static TObject::EStatusBitsTObject::kObjInCanvas
static TObject::<anonymous>TObject::kOverwrite
static TBuffer::EModekRead
static TObject::<anonymous>TObject::kSingleKey
static TBuffer::EModekWrite
static TObject::<anonymous>TObject::kWriteDelete
static TObject::<anonymous>TObject::kZombie
protected:
char*fBufCurCurrent position in buffer
char*fBufMaxEnd of buffer
Int_tfBufSizeSize of buffer
char*fBufferBuffer used to store objects
TBuffer::CacheList_tfCacheStackStack of pointers to the cache where to temporarily store the value of 'missing' data members
Bool_tfModeRead or write mode
TObject*fParentPointer to parent object owning this buffer
ReAllocCharFun_tfReAllocFunc! Realloc function to be used when extending the buffer.
Int_tfVersionBuffer format version

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TBuffer(EMode mode)
 Create an I/O buffer object. Mode should be either TBuffer::kRead or
 TBuffer::kWrite. By default the I/O buffer has a size of
 TBuffer::kInitialSize (1024) bytes.
TBuffer(TBuffer::EMode mode, Int_t bufsiz)
 Create an I/O buffer object. Mode should be either TBuffer::kRead or
 TBuffer::kWrite.
TBuffer(TBuffer::EMode mode, Int_t bufsiz, void* buf, Bool_t adopt = kTRUE, ReAllocCharFun_t reallocfunc = 0)
 Create an I/O buffer object. Mode should be either TBuffer::kRead or
 TBuffer::kWrite. By default the I/O buffer has a size of
 TBuffer::kInitialSize (1024) bytes. An external buffer can be passed
 to TBuffer via the buf argument. By default this buffer will be adopted
 unless adopt is false.
 If the new buffer is _not_ adopted and no memory allocation routine
 is provided, a Fatal error will be issued if the Buffer attempts to
 expand.
~TBuffer()
 Delete an I/O buffer object.
void AutoExpand(Int_t size_needed)
 Automatically calculate a new size and expand the buffer to fit at least size_needed.
 The goals is to minimize the number of memory allocation and the memory allocation
 which avoiding too much memory wastage.
 If the size_needed is larger than the current size, the policy
 is to expand to double the current size or the size_needed which ever is largest.
void SetBuffer(void* buf, UInt_t bufsiz = 0, Bool_t adopt = kTRUE, ReAllocCharFun_t reallocfunc = 0)
 Sets a new buffer in an existing TBuffer object. If newsiz=0 then the
 new buffer is expected to have the same size as the previous buffer.
 The current buffer position is reset to the start of the buffer.
 If the TBuffer owned the previous buffer, it will be deleted prior
 to accepting the new buffer. By default the new buffer will be
 adopted unless adopt is false.
 If the new buffer is _not_ adopted and no memory allocation routine
 is provided, a Fatal error will be issued if the Buffer attempts to
 expand.
void Expand(Int_t newsize, Bool_t copy = kTRUE)
 Expand (or shrink) the I/O buffer to newsize bytes.
 If copy is true (the default), the existing content of the
 buffer is preserved, otherwise the buffer is returned zero-ed out.

 In order to avoid losing data, if the current length is greater than
 the requested size, we only shrink down to the current length.
TObject * GetParent() const
 Return pointer to parent of this buffer.
void SetParent(TObject* parent)
 Set parent owning this buffer.
ReAllocCharFun_t GetReAllocFunc() const
 Return the reallocation method currently used.
void SetReAllocFunc(ReAllocCharFun_t reallocfunc = 0)
 Set which memory reallocation method to use.  If reallocafunc is null,
 reset it to the defaul value (TStorage::ReAlloc)
void SetReadMode()
 Set buffer in read mode.
void SetWriteMode()
 Set buffer in write mode.
TClass * GetClass(const type_info& typeinfo)
 Forward to TROOT::GetClass().
TClass * GetClass(const char* className)
 Forward to TROOT::GetClass().
TProcessID * ReadProcessID(UShort_t pidf)
 Return the current PRocessID.
UShort_t WriteProcessID(TProcessID* pid)
 Always return 0 (current processID).
void PushDataCache(TVirtualArray* )
 Push a new data cache area onto the list of area to be used for
 temporarily store 'missing' data members.
TVirtualArray * PeekDataCache() const
 Return the 'current' data cache area from the list of area to be used for
 temporarily store 'missing' data members.
TVirtualArray * PopDataCache()
 Pop and Return the 'current' data cache area from the list of area to be used for
 temporarily store 'missing' data members.
TBuffer()
 Default ctor
{}
TBuffer(const TBuffer& )
 TBuffer objects cannot be copied or assigned
void operator=(const TBuffer& )
Int_t Read(const char* name)
{ return TObject::Read(name); }
Int_t Write(const char* name, Int_t opt, Int_t bufs)
{ return TObject::Write(name, opt, bufs); }
Int_t Write(const char* name, Int_t opt, Int_t bufs) const
{ return TObject::Write(name, opt, bufs); }
Int_t GetBufferVersion() const
{ return fVersion; }
Bool_t IsReading() const
{ return (fMode & kWrite) == 0; }
Bool_t IsWriting() const
{ return (fMode & kWrite) != 0; }
void SetBufferOffset(Int_t offset = 0)
{ fBufCur = fBuffer+offset; }
char * Buffer() const
{ return fBuffer; }
Int_t BufferSize() const
{ return fBufSize; }
void DetachBuffer()
{ fBuffer = 0; }
Int_t Length() const
{ return (Int_t)(fBufCur - fBuffer); }
Bool_t CheckObject(const TObject* obj)
Bool_t CheckObject(const void* obj, const TClass* ptrClass)
Int_t ReadBuf(void* buf, Int_t max)
void WriteBuf(const void* buf, Int_t max)
char * ReadString(char* s, Int_t max)
void WriteString(const char* s)
Int_t GetVersionOwner() const
Int_t GetMapCount() const
void GetMappedObject(UInt_t tag, void*& ptr, TClass*& ClassPtr) const
void MapObject(const TObject* obj, UInt_t offset = 1)
void MapObject(const void* obj, const TClass* cl, UInt_t offset = 1)
void Reset()
void InitMap()
void ResetMap()
void SetReadParam(Int_t mapsize)
void SetWriteParam(Int_t mapsize)
Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const TClass* clss)
Int_t CheckByteCount(UInt_t startpos, UInt_t bcnt, const char* classname)
void SetByteCount(UInt_t cntpos, Bool_t packInVersion = kFALSE)
void SkipVersion(const TClass* cl = 0)
Version_t ReadVersion(UInt_t* start = 0, UInt_t* bcnt = 0, const TClass* cl = 0)
Version_t ReadVersionNoCheckSum(UInt_t* start = 0, UInt_t* bcnt = 0)
Version_t ReadVersionForMemberWise(const TClass* cl = 0)
UInt_t WriteVersion(const TClass* cl, Bool_t useBcnt = kFALSE)
UInt_t WriteVersionMemberWise(const TClass* cl, Bool_t useBcnt = kFALSE)
void * ReadObjectAny(const TClass* cast)
void SkipObjectAny()
void TagStreamerInfo(TVirtualStreamerInfo* info)
void IncrementLevel(TVirtualStreamerInfo* info)
void SetStreamerElementNumber(Int_t )
void DecrementLevel(TVirtualStreamerInfo* )
void ClassBegin(const TClass* , Version_t = -1)
void ClassEnd(const TClass* )
void ClassMember(const char* , const char* = 0, Int_t = -1, Int_t = -1)
TVirtualStreamerInfo * GetInfo()
TClass * ReadClass(const TClass* cl = 0, UInt_t* objTag = 0)
void WriteClass(const TClass* cl)
TObject * ReadObject(const TClass* cl)
void WriteObject(const TObject* obj)
Int_t WriteObjectAny(const void* obj, const TClass* ptrClass)
UShort_t GetPidOffset() const
void SetPidOffset(UShort_t offset)
Int_t GetBufferDisplacement() const
void SetBufferDisplacement()
void SetBufferDisplacement(Int_t skipped)
void ReadFloat16(Float_t* f, TStreamerElement* ele = 0)
 basic types and arrays of basic types
void WriteFloat16(Float_t* f, TStreamerElement* ele = 0)
void ReadDouble32(Double_t* d, TStreamerElement* ele = 0)
void WriteDouble32(Double_t* d, TStreamerElement* ele = 0)
void ReadWithFactor(Float_t* ptr, Double_t factor, Double_t minvalue)
void ReadWithNbits(Float_t* ptr, Int_t nbits)
void ReadWithFactor(Double_t* ptr, Double_t factor, Double_t minvalue)
void ReadWithNbits(Double_t* ptr, Int_t nbits)
Int_t ReadArray(Bool_t*& b)
Int_t ReadArray(Char_t*& c)
Int_t ReadArray(UChar_t*& c)
Int_t ReadArray(Short_t*& h)
Int_t ReadArray(UShort_t*& h)
Int_t ReadArray(Int_t*& i)
Int_t ReadArray(UInt_t*& i)
Int_t ReadArray(Long_t*& l)
Int_t ReadArray(ULong_t*& l)
Int_t ReadArray(Long64_t*& l)
Int_t ReadArray(ULong64_t*& l)
Int_t ReadArray(Float_t*& f)
Int_t ReadArray(Double_t*& d)
Int_t ReadArrayFloat16(Float_t*& f, TStreamerElement* ele = 0)
Int_t ReadArrayDouble32(Double_t*& d, TStreamerElement* ele = 0)
Int_t ReadStaticArray(Bool_t* b)
Int_t ReadStaticArray(Char_t* c)
Int_t ReadStaticArray(UChar_t* c)
Int_t ReadStaticArray(Short_t* h)
Int_t ReadStaticArray(UShort_t* h)
Int_t ReadStaticArray(Int_t* i)
Int_t ReadStaticArray(UInt_t* i)
Int_t ReadStaticArray(Long_t* l)
Int_t ReadStaticArray(ULong_t* l)
Int_t ReadStaticArray(Long64_t* l)
Int_t ReadStaticArray(ULong64_t* l)
Int_t ReadStaticArray(Float_t* f)
Int_t ReadStaticArray(Double_t* d)
Int_t ReadStaticArrayFloat16(Float_t* f, TStreamerElement* ele = 0)
Int_t ReadStaticArrayDouble32(Double_t* d, TStreamerElement* ele = 0)
void ReadFastArray(Bool_t* b, Int_t n)
void ReadFastArray(Char_t* c, Int_t n)
void ReadFastArrayString(Char_t* c, Int_t n)
void ReadFastArray(UChar_t* c, Int_t n)
void ReadFastArray(Short_t* h, Int_t n)
void ReadFastArray(UShort_t* h, Int_t n)
void ReadFastArray(Int_t* i, Int_t n)
void ReadFastArray(UInt_t* i, Int_t n)
void ReadFastArray(Long_t* l, Int_t n)
void ReadFastArray(ULong_t* l, Int_t n)
void ReadFastArray(Long64_t* l, Int_t n)
void ReadFastArray(ULong64_t* l, Int_t n)
void ReadFastArray(Float_t* f, Int_t n)
void ReadFastArray(Double_t* d, Int_t n)
void ReadFastArrayFloat16(Float_t* f, Int_t n, TStreamerElement* ele = 0)
void ReadFastArrayDouble32(Double_t* d, Int_t n, TStreamerElement* ele = 0)
void ReadFastArrayWithFactor(Float_t* ptr, Int_t n, Double_t factor, Double_t minvalue)
void ReadFastArrayWithNbits(Float_t* ptr, Int_t n, Int_t nbits)
void ReadFastArrayWithFactor(Double_t* ptr, Int_t n, Double_t factor, Double_t minvalue)
void ReadFastArrayWithNbits(Double_t* ptr, Int_t n, Int_t nbits)
void ReadFastArray(void* start, const TClass* cl, Int_t n = 1, TMemberStreamer* s = 0, const TClass* onFileClass = 0)
void ReadFastArray(void** startp, const TClass* cl, Int_t n = 1, Bool_t isPreAlloc = kFALSE, TMemberStreamer* s = 0, const TClass* onFileClass = 0)
void WriteArray(const Bool_t* b, Int_t n)
void WriteArray(const Char_t* c, Int_t n)
void WriteArray(const UChar_t* c, Int_t n)
void WriteArray(const Short_t* h, Int_t n)
void WriteArray(const UShort_t* h, Int_t n)
void WriteArray(const Int_t* i, Int_t n)
void WriteArray(const UInt_t* i, Int_t n)
void WriteArray(const Long_t* l, Int_t n)
void WriteArray(const ULong_t* l, Int_t n)
void WriteArray(const Long64_t* l, Int_t n)
void WriteArray(const ULong64_t* l, Int_t n)
void WriteArray(const Float_t* f, Int_t n)
void WriteArray(const Double_t* d, Int_t n)
void WriteArrayFloat16(const Float_t* f, Int_t n, TStreamerElement* ele = 0)
void WriteArrayDouble32(const Double_t* d, Int_t n, TStreamerElement* ele = 0)
void WriteFastArray(const Bool_t* b, Int_t n)
void WriteFastArray(const Char_t* c, Int_t n)
void WriteFastArrayString(const Char_t* c, Int_t n)
void WriteFastArray(const UChar_t* c, Int_t n)
void WriteFastArray(const Short_t* h, Int_t n)
void WriteFastArray(const UShort_t* h, Int_t n)
void WriteFastArray(const Int_t* i, Int_t n)
void WriteFastArray(const UInt_t* i, Int_t n)
void WriteFastArray(const Long_t* l, Int_t n)
void WriteFastArray(const ULong_t* l, Int_t n)
void WriteFastArray(const Long64_t* l, Int_t n)
void WriteFastArray(const ULong64_t* l, Int_t n)
void WriteFastArray(const Float_t* f, Int_t n)
void WriteFastArray(const Double_t* d, Int_t n)
void WriteFastArrayFloat16(const Float_t* f, Int_t n, TStreamerElement* ele = 0)
void WriteFastArrayDouble32(const Double_t* d, Int_t n, TStreamerElement* ele = 0)
void WriteFastArray(void* start, const TClass* cl, Int_t n = 1, TMemberStreamer* s = 0)
Int_t WriteFastArray(void** startp, const TClass* cl, Int_t n = 1, Bool_t isPreAlloc = kFALSE, TMemberStreamer* s = 0)
void StreamObject(void* obj, const type_info& typeinfo, const TClass* onFileClass = 0)
void StreamObject(void* obj, const char* className, const TClass* onFileClass = 0)
void StreamObject(void* obj, const TClass* cl, const TClass* onFileClass = 0)
void StreamObject(TObject* obj)
void ReadBool(Bool_t& b)
void ReadChar(Char_t& c)
void ReadUChar(UChar_t& c)
void ReadShort(Short_t& s)
void ReadUShort(UShort_t& s)
void ReadInt(Int_t& i)
void ReadUInt(UInt_t& i)
void ReadLong(Long_t& l)
void ReadULong(ULong_t& l)
void ReadLong64(Long64_t& l)
void ReadULong64(ULong64_t& l)
void ReadFloat(Float_t& f)
void ReadDouble(Double_t& d)
void ReadCharP(Char_t* c)
void ReadTString(TString& s)
void WriteBool(Bool_t b)
void WriteChar(Char_t c)
void WriteUChar(UChar_t c)
void WriteShort(Short_t s)
void WriteUShort(UShort_t s)
void WriteInt(Int_t i)
void WriteUInt(UInt_t i)
void WriteLong(Long_t l)
void WriteULong(ULong_t l)
void WriteLong64(Long64_t l)
void WriteULong64(ULong64_t l)
void WriteFloat(Float_t f)
void WriteDouble(Double_t d)
void WriteCharP(const Char_t* c)
void WriteTString(const TString& s)
TProcessID * GetLastProcessID(TRefTable* reftable) const
 Special basic ROOT objects and collections
UInt_t GetTRefExecId()
void ForceWriteInfo(TVirtualStreamerInfo* info, Bool_t force)
 Utilities for TStreamerInfo
void ForceWriteInfoClones(TClonesArray* a)
Int_t ReadClones(TClonesArray* a, Int_t nobjects, Version_t objvers)
Int_t WriteClones(TClonesArray* a, Int_t nobjects)
Int_t ReadClassEmulated(const TClass* cl, void* object, const TClass* onfile_class = 0)
 Utilities for TClass
Int_t ReadClassBuffer(const TClass* cl, void* pointer, const TClass* onfile_class = 0)
Int_t ReadClassBuffer(const TClass* cl, void* pointer, Int_t version, UInt_t start, UInt_t count, const TClass* onfile_class = 0)
Int_t WriteClassBuffer(const TClass* cl, void* pointer)
Int_t ApplySequence(const TStreamerInfoActions::TActionSequence& sequence, void* object)
 Utilites to streamer using sequences.
Int_t ApplySequenceVecPtr(const TStreamerInfoActions::TActionSequence& sequence, void* start_collection, void* end_collection)
Int_t ApplySequence(const TStreamerInfoActions::TActionSequence& sequence, void* start_collection, void* end_collection)