55 bool Create(
const char *szFileName,
bool fCompressed=
false,
bool fExecutable=
false,
bool fMemory=
false);
56 bool Open(
const char *szFileName,
bool fCompressed=
false);
57 bool Append(
const char *szFilename,
bool text=
false);
61 bool Read(
void *pBuffer,
size_t iSize,
size_t *ipFSize);
65 bool Advance(
int iOffset)
override;
66 int Seek(
long int offset,
int whence);
79 bool GetFileCRC(
const char *szFilename, uint32_t *pCRC32);
int UncompressedFileSize(const char *szFileName)
const int CStdFileBufSize
bool GetFileSHA1(const char *szFilename, BYTE *pSHA1)
bool GetFileCRC(const char *szFilename, uint32_t *pCRC32)
int Seek(long int offset, int whence)
bool Close(StdBuf **ppMemory=nullptr)
BYTE Buffer[CStdFileBufSize]
bool Create(const char *szFileName, bool fCompressed=false, bool fExecutable=false, bool fMemory=false)
bool Write(const void *pBuffer, int iSize)
size_t AccessedEntrySize() const override
bool WriteString(const char *szStr)
bool Advance(int iOffset) override
bool Append(const char *szFilename, bool text=false)
bool Read(void *pBuffer, size_t iSize) override
StdThreadCheck thread_check
bool Open(const char *szFileName, bool fCompressed=false)
virtual bool Read(void *pBuffer, size_t iSize)=0
virtual bool Advance(int iOffset)=0
virtual ~CStdStream()=default
virtual size_t AccessedEntrySize() const =0