5#ifndef HAM_FILESYSTEM_HPP
6#define HAM_FILESYSTEM_HPP
42 bool open(
const char* fname,
const OpenType& mode);
46 bool is_available()
const;
52 size_t write(
const uint8_t*
const in,
size_t sz);
54 size_t read(uint8_t* out,
size_t sz);
56 bool seek(uint8_t sz);
58 void truncate(uint8_t sz);
63 std::unique_ptr<FileInternalTy> mInternalFile;
void shutdown()
Global filesystem shutdown.
void format_file_system()
Format/erase the whole file system.
bool delete_file(const char *fname)
Delete a given file.
Program scope.
Definition: control_fixed_modes.hpp:12
Handle class for a file.
Definition: filesystem.h:32