19 File(std::string filename);
27 bool open(std::string newmode)
override;
29 bool close()
override;
31 bool isOpen()
const override;
35 int64_t
read(
void *dst, int64_t
size)
override;
37 bool write(
const void *data, int64_t
size)
override;
39 bool flush()
override;
41 bool isEOF()
override;
43 int64_t
tell()
override;
45 bool seek(uint64_t
pos)
override;
51 std::string
getMode()
const override;
60 std::string bufferMode;
A File interface, providing generic means of reading from and writing to files.
virtual FileData * read(int64_t size=ALL)
Reads data from the file and allocates a Data object.
virtual bool write(const void *data, int64_t size)=0
Writes data into the File.
File which is created when a user drags and drops an actual file onto the eve game....
int64_t read(void *dst, int64_t size) override
Reads read.
bool write(const void *data, int64_t size) override
Writes write.
int64_t getSize() override
Byte length of the owned buffer.
bool seek(uint64_t pos) override
Seeks seek.
bool setBuffer(std::string bufmode, int64_t size) override
Sets the buffer.
virtual ~File()
Releases File resources.
bool open(std::string newmode) override
Opens open.
bool isOpen() const override
True when open.
bool close() override
Closes close.
int64_t tell() override
Returns the current tell.
bool flush() override
Flushes flush.
bool isEOF() override
True when eof.
std::string getMode() const override
Returns the mode.
std::string getFilename() const override
Full filename including extension.
std::string getBuffer(int64_t &size) const override
Returns the buffer.
Build metadata (engine git commit, build time, third-party version).