22 #ifndef BACKENDS_FS_STDIOSTREAM_H 23 #define BACKENDS_FS_STDIOSTREAM_H 25 #include "common/scummsys.h" 26 #include "common/noncopyable.h" 27 #include "common/stream.h" 28 #include "common/str.h" 35 WriteMode_WriteAtomic = 2,
52 return makeFromPathHelper(path, writeMode, [](
void *handle) {
58 ~StdioStream()
override;
60 bool err()
const override;
62 bool eos()
const override;
64 uint32
write(
const void *dataPtr, uint32 dataSize)
override;
65 bool flush()
override;
67 int64
pos()
const override;
68 int64
size()
const override;
69 bool seek(int64 offs,
int whence = SEEK_SET)
override;
70 uint32
read(
void *dataPtr, uint32 dataSize)
override;
int64 pos() const override
uint32 read(void *dataPtr, uint32 dataSize) override
bool seek(int64 offs, int whence=SEEK_SET) override
bool err() const override
Definition: noncopyable.h:39
bool eos() const override
Definition: stdiostream.h:30
void * _handle
Definition: stdiostream.h:40
bool setBufferSize(uint32 bufferSize)
uint32 write(const void *dataPtr, uint32 dataSize) override
static StdioStream * makeFromPath(const Common::String &path, WriteMode writeMode)
Definition: stdiostream.h:51
int64 size() const override