|
Pyrogenesis
13997
|
Reads a file, then gives read-only access to the contents. More...
#include <Filesystem.h>
Public Member Functions | |
| CVFSFile () | |
| ~CVFSFile () | |
| PSRETURN | Load (const PIVFS &vfs, const VfsPath &filename) |
| Returns either PSRETURN_OK or PSRETURN_CVFSFile_LoadFailed. More... | |
| const u8 * | GetBuffer () const |
| Returns buffer of this file as a stream of bytes. More... | |
| size_t | GetBufferSize () const |
| CStr | GetAsString () const |
| Returns contents of file as a string. More... | |
| CStr | DecodeUTF8 () const |
| Returns contents of a UTF-8 encoded file as a string with optional BOM removed. More... | |
Private Attributes | |
| shared_ptr< u8 > | m_Buffer |
| size_t | m_BufferSize |
Reads a file, then gives read-only access to the contents.
Definition at line 69 of file Filesystem.h.
| CVFSFile::CVFSFile | ( | ) |
Definition at line 108 of file Filesystem.cpp.
| CVFSFile::~CVFSFile | ( | ) |
Definition at line 113 of file Filesystem.cpp.
| CStr CVFSFile::DecodeUTF8 | ( | ) | const |
Returns contents of a UTF-8 encoded file as a string with optional BOM removed.
Definition at line 153 of file Filesystem.cpp.
| CStr CVFSFile::GetAsString | ( | ) | const |
Returns contents of file as a string.
Definition at line 148 of file Filesystem.cpp.
| const u8 * CVFSFile::GetBuffer | ( | ) | const |
Returns buffer of this file as a stream of bytes.
Definition at line 138 of file Filesystem.cpp.
| size_t CVFSFile::GetBufferSize | ( | ) | const |
Definition at line 143 of file Filesystem.cpp.
Returns either PSRETURN_OK or PSRETURN_CVFSFile_LoadFailed.
Definition at line 117 of file Filesystem.cpp.
|
private |
Definition at line 101 of file Filesystem.h.
|
private |
Definition at line 102 of file Filesystem.h.
1.8.5