12 #ifndef ROOT_TGFALFile
13 #define ROOT_TGFALFile
19 class TGFALFile :
public TFile {
23 struct stat64 fStatBuffer;
25 TGFALFile() : fStatCached(kFALSE) { }
28 Int_t SysOpen(
const char *pathname, Int_t flags, UInt_t mode);
29 Int_t SysClose(Int_t fd);
30 Int_t SysRead(Int_t fd,
void *buf, Int_t len);
31 Int_t SysWrite(Int_t fd,
const void *buf, Int_t len);
32 Long64_t SysSeek(Int_t fd, Long64_t offset, Int_t whence);
33 Int_t SysStat(Int_t fd, Long_t *
id, Long64_t *size, Long_t *flags, Long_t *modtime);
34 Int_t SysSync(Int_t) {
return 0; }
37 TGFALFile(
const char *url, Option_t *option=
"",
38 const char *ftitle=
"", Int_t compress = ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault);
41 Bool_t ReadBuffer(
char *buf, Int_t len);
42 Bool_t ReadBuffer(
char *buf, Long64_t pos, Int_t len);
43 Bool_t WriteBuffer(
const char *buf, Int_t len);
49 class TGFALSystem :
public TSystem {
54 void *GetDirPtr()
const {
return fDirp; }
58 virtual ~TGFALSystem() { }
60 Int_t MakeDirectory(
const char *name);
61 void *OpenDirectory(
const char *name);
62 void FreeDirectory(
void *dirp);
63 const char *GetDirEntry(
void *dirp);
64 Int_t GetPathInfo(
const char *path, FileStat_t &buf);
65 Bool_t AccessPathName(
const char *path, EAccessMode mode);
67 ClassDef(TGFALSystem,0)