Engine → Core → file_system.h
vfs::file
| Type | Class |
| Namespace | conjure::core::vfs |
| Include File Path | engine/include/conjure/core/vfs/file_system.h |
| Source File Path | engine/src/core/vfs/file_system.cpp |
| API ↗ | Files and the virtual file system |
Syntax
Constructors
| Access | Signature | Description |
|---|---|---|
| public | file(); |
Important
Additional constructor overloads have been deleted.
Destructors
| Access | Signature | Description |
|---|---|---|
| public | virtual ~file(); |
Functions
Public
read_at
read_atReads up to out.size() bytes starting at offset and returns how many were read, which is fewer than requested only at the end of the file. An offset past the end is OUT_OF_RANGE; an offset equal to the size reads zero bytes.
size
size[[nodiscard]] virtual u64 size() const noexcept = 0;Size of the file in bytes when it was opened.