ROOT  6.06/09
Reference Guide
Functions | Variables
TBufferFile.cxx File Reference
#include <string.h>
#include <typeinfo>
#include <string>
#include "TFile.h"
#include "TBufferFile.h"
#include "TExMap.h"
#include "TClass.h"
#include "TProcessID.h"
#include "TRefTable.h"
#include "TStorage.h"
#include "TError.h"
#include "TClonesArray.h"
#include "TStreamer.h"
#include "TStreamerInfo.h"
#include "TStreamerElement.h"
#include "TSchemaRuleSet.h"
#include "TStreamerInfoActions.h"
#include "TInterpreter.h"
#include "TVirtualMutex.h"
#include "TArrayC.h"
+ Include dependency graph for TBufferFile.cxx:

Go to the source code of this file.

Functions

 ClassImp (TBufferFile) static inline ULong_t Void_Hash(const void *ptr)
 Return hash value for this object. More...
 
static bool Class_Has_StreamerInfo (const TClass *cl)
 Thread-safe check on StreamerInfos of a TClass. More...
 
static void frombufOld (char *&buf, Long_t *x)
 Handle old file formats. More...
 

Variables

const UInt_t kNullTag = 0
 
const UInt_t kNewClassTag = 0xFFFFFFFF
 
const UInt_t kClassMask = 0x80000000
 
const UInt_t kByteCountMask = 0x40000000
 
const UInt_t kMaxMapCount = 0x3FFFFFFE
 
const Version_t kByteCountVMask = 0x4000
 
const Version_t kMaxVersion = 0x3FFF
 
const Int_t kMapOffset = 2
 

Function Documentation

static bool Class_Has_StreamerInfo ( const TClass cl)
inlinestatic

Thread-safe check on StreamerInfos of a TClass.

Definition at line 77 of file TBufferFile.cxx.

Referenced by TBufferFile::ReadVersion(), TBufferFile::ReadVersionForMemberWise(), and TBufferFile::SkipVersion().

ClassImp ( TBufferFile  ) const

Return hash value for this object.

Definition at line 64 of file TBufferFile.cxx.

static void frombufOld ( char *&  buf,
Long_t x 
)
static

Handle old file formats.

Files written with versions older than 3.00/06 had a non-portable implementation of Long_t/ULong_t. These types should not have been used at all. However, because some users had already written many files with these types we provide this dirty patch for "backward compatibility"

Definition at line 211 of file TBufferFile.cxx.

Referenced by TBufferFile::ReadArray(), TBufferFile::ReadFastArray(), TBufferFile::ReadLong(), and TBufferFile::ReadStaticArray().

Variable Documentation

const UInt_t kByteCountMask = 0x40000000
const Version_t kByteCountVMask = 0x4000

Definition at line 57 of file TBufferFile.cxx.

Referenced by TBufferFile::SetByteCount(), and TBufferFile::SkipVersion().

const UInt_t kClassMask = 0x80000000

Definition at line 54 of file TBufferFile.cxx.

Referenced by TBufferFile::ReadClass(), and TBufferFile::WriteClass().

const Int_t kMapOffset = 2
const UInt_t kMaxMapCount = 0x3FFFFFFE

Definition at line 56 of file TBufferFile.cxx.

Referenced by TBufferFile::CheckCount(), and TBufferFile::SetByteCount().

const Version_t kMaxVersion = 0x3FFF
const UInt_t kNewClassTag = 0xFFFFFFFF
const UInt_t kNullTag = 0

Definition at line 52 of file TBufferFile.cxx.

Referenced by TBufferFile::InitMap(), and TBufferFile::WriteObjectClass().