12 #ifndef ROOT_TFileCacheWrite 13 #define ROOT_TFileCacheWrite Int_t fNtot
Total size of cached blocks.
TFileCacheWrite()
Default Constructor.
TFileCacheWrite & operator=(const TFileCacheWrite &)
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual Int_t GetBytesInCache() const
char * fBuffer
[fBufferSize] buffer of contiguous prefetched blocks
#define ClassDef(name, id)
virtual ~TFileCacheWrite()
Destructor.
virtual Bool_t Flush()
Flush the current write buffer to the file.
TFile * fFile
Pointer to file.
virtual Int_t ReadBuffer(char *buf, Long64_t pos, Int_t len)
Called by the read cache to check if the requested data is not in the write cache buffer...
Bool_t fRecursive
flag to avoid recursive calls
Mother of all ROOT objects.
virtual Int_t WriteBuffer(const char *buf, Long64_t pos, Int_t len)
Write buffer at position pos in the write buffer.
virtual void Print(Option_t *option="") const
Print class internal structure.
Int_t fBufferSize
Allocated size of fBuffer.
Long64_t fSeekStart
Seek value of first block in cache.
virtual void SetFile(TFile *file)
Set the file using this cache.
A cache when writing files over the network.