HostFileDevice.h
Go to the documentation of this file.
Class to manage a NUL-terminated C-style string When storing persistent strings in RAM the regular St...
Definition: CString.h:27
Type
Storage type.
Definition: Components/Storage/src/include/Storage/Device.h:42
Base class for sector-addressable (block) devices.
Definition: BlockDevice.h:34
Create custom storage device using backing file.
Definition: HostFileDevice.h:21
bool raw_sector_read(storage_size_t address, void *dst, size_t size) override
HostFileDevice(const String &name, const String &filename, storage_size_t size)
Construct a file device with custom size.
~HostFileDevice()
String getName() const override
Obtain unique device name.
Definition: HostFileDevice.h:42
Type getType() const override
Obtain device type.
Definition: HostFileDevice.h:47
HostFileDevice(const String &name, const String &filename)
Construct a device using existing file.
bool raw_sector_erase_range(storage_size_t address, size_t size) override
bool raw_sector_write(storage_size_t address, const void *src, size_t size) override
Definition: Partition.h:78