void ResetAfterMerge(TFileMergeInfo *)
Wipe all the data from the permanent buffer but keep, the in-memory object alive. ...
~TMemBlock()
Usual destructors. Delete the block memory.
virtual Long64_t CopyTo(void *to, Long64_t maxsize) const
Copy the binary representation of the TMemFile into the memory area starting at 'to' and of length at...
Int_t SysOpen(const char *pathname, Int_t flags, UInt_t mode)
Open a file in 'MemFile'.
Long64_t fSysOffset
Seek offset in file.
Long64_t fSize
Total file size (sum of the size of the chunks)
Int_t SysClose(Int_t fd)
Close the mem file.
Long64_t fBlockOffset
Seek offset within the block.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
void ResetErrno() const
Simply calls TSystem::ResetErrno().
Buffer base class used for serializing objects.
virtual Long64_t GetSize() const
Return the current size of the memory file.
Int_t SysWrite(Int_t fd, const void *buf, Int_t len)
Write a buffer into the file.
TMemFile & operator=(const TMemFile &)
A TMemFile is like a normal TFile except that it reads and writes only from memory.
#define ClassDef(name, id)
virtual void Print(Option_t *option="") const
Print all objects in the file.
Int_t SysSync(Int_t fd)
Sync remaining data to disk.
void tobuf(char *&buf, Bool_t x)
Int_t SysRead(Int_t fd, void *buf, Int_t len)
Read specified number of bytes from current offset into the buffer.
A ROOT file is structured in Directories (like a file system).
TMemBlock * fBlockSeek
Pointer to the block we seeked to.
Int_t SysStat(Int_t fd, Long_t *id, Long64_t *size, Long_t *flags, Long_t *modtime)
Perform a stat on the HDFS file; see TFile::SysStat().
TMemBlock fBlockList
Colletion of memory blocks of size fBlockSize.
virtual ~TMemFile()
Close and clean-up file.
Long64_t SysSeek(Int_t fd, Long64_t offset, Int_t whence)
Seek to a specified position in the file.
static Long64_t fgDefaultBlockSize
void CreateNext(Long64_t size)
void ResetObjects(TDirectoryFile *, TFileMergeInfo *) const
Wipe all the data from the permanent buffer but keep, the in-memory object alive. ...
TMemFile(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=1)
Usual Constructor. See the TFile constructor for details.
Long64_t MemRead(Int_t fd, void *buf, Long64_t len) const
TMemBlock & operator=(const TMemBlock &)