Pictel 2d 0.1
Game Engine Documentation
|
Public Member Functions | |
FileStreamI (std::string filename) | |
std::string & | GetFilename () |
int64_t & | GetSize () |
virtual int64_t | Seek (int64_t offset, int whence)=0 |
virtual size_t | Read (void *ptr, size_t size, size_t maxnum)=0 |
virtual FILE * | GetFP ()=0 |
virtual std::string | ReadBufferString ()=0 |
Protected Attributes | |
std::string | m_filename |
int64_t | m_size |
Provides an abstraction over file access.
|
pure virtual |
Direct access to the file. Do not close by yourself.
Implemented in engine::FileMemoryBufferStreamFromFile.
|
inline |
Return the size of the file, or -1 if unknown
|
pure virtual |
Read up to maxnum
objects each of size size
from the data stream to the area pointed at by ptr
.
Implemented in engine::FileMemoryBufferStreamFromFile.
|
pure virtual |
Helper to read the whole file as string
Implemented in engine::FileMemoryBufferStreamFromFile.
|
pure virtual |
Seek to offset
relative to whence
, one of stdio's whence values: RW_SEEK_SET, RW_SEEK_CUR, RW_SEEK_END
Implemented in engine::FileMemoryBufferStreamFromFile.