Reads a file, then gives read-only access to the contents.
More...
#include <Filesystem.h>
Reads a file, then gives read-only access to the contents.
◆ CVFSFile()
◆ ~CVFSFile()
◆ DecodeUTF8()
CStr CVFSFile::DecodeUTF8 |
( |
| ) |
const |
Returns contents of a UTF-8 encoded file as a string with optional BOM removed.
- Note
- file must have been successfully loaded
◆ GetAsString()
CStr CVFSFile::GetAsString |
( |
| ) |
const |
Returns contents of file as a string.
- Note
- file must have been successfully loaded
◆ GetBuffer()
const u8 * CVFSFile::GetBuffer |
( |
| ) |
const |
Returns buffer of this file as a stream of bytes.
- Note
- file must have been successfully loaded
◆ GetBufferSize()
size_t CVFSFile::GetBufferSize |
( |
| ) |
const |
◆ Load()
Returns either PSRETURN_OK or PSRETURN_CVFSFile_LoadFailed.
- Note
- Dies if the file has already been successfully loaded
- Parameters
-
log | Whether to log a failure to load a file |
◆ m_Buffer
std::shared_ptr<u8> CVFSFile::m_Buffer |
|
private |
◆ m_BufferSize
size_t CVFSFile::m_BufferSize |
|
private |
The documentation for this class was generated from the following files:
- /home/docker/jenkins/workspace/technical-docs/source/ps/Filesystem.h
- /home/docker/jenkins/workspace/technical-docs/source/ps/Filesystem.cpp