载入中...
搜索中...
未找到
File.h
浏览该文件的文档.
Data buffer paired with a filename (used for type identification).
Definition FileData.h:12
A File interface, providing generic means of reading from and writing to files.
Definition File.h:14
virtual bool flush()=0
Flushes the currently buffered file data to disk. Only applicable in write mode.
virtual std::string getExtension() const
Gets the file extension for this File, or empty string if none.
Definition File.cpp:46
virtual bool setBuffer(std::string bufmode, int64_t size)=0
Sets the buffering mode for the file. When buffering is enabled,
virtual int64_t read(void *dst, int64_t size)=0
Reads data into the destination buffer.
virtual std::string getMode() const =0
Gets the current mode of the File.
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.
virtual std::string getFilename() const =0
Gets the filename for this File, or empty string if none.
virtual std::string getBuffer(int64_t &size) const =0
virtual bool seek(uint64_t pos)=0
Seeks to a certain position in the File.
Definition Build.cpp:11