|
| | File (std::string filename) |
| | Constructs a File.
|
| |
| virtual | ~File () |
| | Releases File resources.
|
| |
| bool | open (std::string newmode) override |
| | Opens open.
|
| |
| bool | close () override |
| | Closes close.
|
| |
| bool | isOpen () const override |
| | True when open.
|
| |
| int64_t | getSize () override |
| | Byte length of the owned buffer.
|
| |
| int64_t | read (void *dst, int64_t size) override |
| | Reads read.
|
| |
| bool | write (const void *data, int64_t size) override |
| | Writes write.
|
| |
| bool | flush () override |
| | Flushes flush.
|
| |
| bool | isEOF () override |
| | True when eof.
|
| |
| int64_t | tell () override |
| | Returns the current tell.
|
| |
| bool | seek (uint64_t pos) override |
| | Seeks seek.
|
| |
| bool | setBuffer (std::string bufmode, int64_t size) override |
| | Sets the buffer.
|
| |
| std::string | getBuffer (int64_t &size) const override |
| | Returns the buffer.
|
| |
| std::string | getMode () const override |
| | Returns the mode.
|
| |
| std::string | getFilename () const override |
| | Full filename including extension.
|
| |
| virtual FileData * | read (int64_t size=ALL) |
| | Reads data from the file and allocates a Data object.
|
| |
| virtual bool | write (const Data *data, int64_t size=ALL) |
| | Writes a Data object into the File.
|
| |
| virtual std::string | getExtension () const |
| | Gets the file extension for this File, or empty string if none.
|
| |
File which is created when a user drags and drops an actual file onto the eve game. Uses C++ stdio & filesystem. Filenames are system-dependent full paths.
在文件 File.h 第 16 行定义.