SysMem.h
Go to the documentation of this file.
PartitionTable mPartitions
Definition: Components/Storage/src/include/Storage/Device.h:187
bool read(storage_size_t address, void *buffer, size_t len) override
Read data from the storage device.
Definition: SysMem.h:59
size_t getBlockSize() const override
Obtain smallest allocation unit for erase operations.
Definition: SysMem.h:44
Partition add(const String &name, const FSTR::ObjectBase &fstr, Partition::FullType type)
Add partition entry for FlashString data access.
Definition: SysMem.h:95
SysMemPartitionTable & editablePartitions()
Definition: SysMem.h:102
storage_size_t getSize() const override
Obtain addressable size of this device.
Definition: SysMem.h:49
SysMem sysMem
Definition: PartitionTable.h:26
Type
Storage type.
Definition: Components/Storage/src/include/Storage/Device.h:42
Definition: FileDevice.h:25
Express both partition type and subtype together.
Definition: Partition.h:139
void * memcpy_P(void *dest, const void *src_P, size_t length)
size_t size() const
Get the object data size in bytes.
Definition: ObjectBase.hpp:82
Partition add(const Partition::Info *info)
Add new partition using given Info.
Definition: PartitionTable.h:122
bool erase_range(storage_size_t address, storage_size_t len) override
Erase a region of storage in preparation for writing.
Definition: SysMem.h:79
#define F(string_literal)
Wrap a string literal stored in flash and access it using a String object.
Definition: WString.h:113
bool write(storage_size_t address, const void *data, size_t len) override
Write data to the storage device.
Definition: SysMem.h:69
String getName() const override
Obtain unique device name.
Definition: SysMem.h:39
#define isFlashPtr(ptr)
Simple check to determine if a pointer refers to flash memory.
Definition: Arch/Esp8266/Components/libc/include/sys/pgmspace.h:27