File wrapper class to provide a more convenient API and automatic closing.
More...
#include <filesystem.h>
File wrapper class to provide a more convenient API and automatic closing.
Definition at line 161 of file filesystem.h.
◆ File()
FS::File::File |
( |
PHYSFS_file * |
file | ) |
|
|
inlineexplicit |
◆ ~File()
◆ close()
◆ eof()
bool FS::File::eof |
( |
| ) |
const |
|
inline |
◆ fileLength()
std::optional< size_t > FS::File::fileLength |
( |
| ) |
const |
|
inline |
◆ flush()
◆ isOpen()
bool FS::File::isOpen |
( |
| ) |
const |
|
inline |
◆ operator bool()
FS::File::operator bool |
( |
| ) |
const |
|
inline |
◆ read()
std::optional< size_t > FS::File::read |
( |
void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inline |
◆ seek()
bool FS::File::seek |
( |
size_t |
pos | ) |
|
|
inline |
◆ tell()
std::optional< size_t > FS::File::tell |
( |
| ) |
const |
|
inline |
◆ write()
std::optional< size_t > FS::File::write |
( |
const void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
inline |
◆ file
PHYSFS_file* FS::File::file |
|
private |
The documentation for this class was generated from the following file: