MT Core (C++)
Core library for replacing C++ standard in project usage
Loading...
Searching...
No Matches
File_io

File I/O operations and abstractions. More...

Classes

struct  mtcore::io::SyncFileSystemVTable
 VTable for synchronous file system. More...
 
struct  mtcore::io::SyncFileSystem
 Synchronous File System interface for handling I/O calls This is encapsulated as a struct of file pointers so we can do deterministic testing This allows us to also dynamically swap things out for different file systems, or even do remote "file systems" where we're reading and writing to an object store (e.g. More...
 

Typedefs

using mtcore::io::FileError = int
 File error.
 

Functions

SyncFileSystem mtcore::io::c_filesys ()
 Creates a sync file system based on the C API Uses the 64-bit options where possible (enables >2GB file ops)
 

Detailed Description

File I/O operations and abstractions.

Typedef Documentation

◆ FileError

using mtcore::io::FileError = int

File error.

Just an int since we're wrapping C library stuff

Definition at line 39 of file file_sys.hpp.

Function Documentation

◆ c_filesys()

SyncFileSystem mtcore::io::c_filesys ( )

Creates a sync file system based on the C API Uses the 64-bit options where possible (enables >2GB file ops)

Returns
A sync file system