载入中...
搜索中...
未找到
File.h
浏览该文件的文档.
A File interface, providing generic means of reading from and writing to files.
Definition File.h:14
virtual FileData * read(int64_t size=ALL)
Reads data from the file and allocates a Data object.
Definition File.cpp:9
virtual bool write(const void *data, int64_t size)=0
Writes data into the File.
Definition File.h:16
std::string getFilename() const override
Gets the filename for this File, or empty string if none.
Definition File.cpp:195
bool setBuffer(std::string bufmode, int64_t size) override
Sets the buffering mode for the file. When buffering is enabled,
Definition File.cpp:163
bool write(const void *data, int64_t size) override
Writes data into the File.
Definition File.cpp:118
int64_t read(void *dst, int64_t size) override
Reads data into the destination buffer.
Definition File.cpp:101
bool flush() override
Flushes the currently buffered file data to disk. Only applicable in write mode.
Definition File.cpp:137
std::string getBuffer(int64_t &size) const override
Definition File.cpp:190
Definition Build.cpp:11