IFS::Extent Struct Reference
Defines the location of a contiguous run of file data. More...
#include <Extent.h>
Collaboration diagram for IFS::Extent:
Public Attributes | |
| storage_size_t | offset |
| From start of partition. More... | |
| uint32_t | length |
| In bytes. More... | |
| uint16_t | skip |
| Skip bytes to next repeat. More... | |
| uint16_t | repeat |
| Number of repeats. More... | |
Detailed Description
Defines the location of a contiguous run of file data.
e.g. offset: 0 length: 251 skip: 5 repeat: 30 Describes 30 blocks of data each of 251 bytes with a 5-byte gap between them. Thus run contains 7530 bytes of file data, consuming 7680 bytes of storage.
skip/repeat is necessary for SPIFFS to keep RAM usage sensible. Thus, a sample 267kByte application image has 1091 extents, but requires perhaps only 60 entries.
Member Data Documentation
◆ length
| uint32_t IFS::Extent::length |
In bytes.
◆ offset
| storage_size_t IFS::Extent::offset |
From start of partition.
◆ repeat
| uint16_t IFS::Extent::repeat |
Number of repeats.
◆ skip
| uint16_t IFS::Extent::skip |
Skip bytes to next repeat.
The documentation for this struct was generated from the following file:
1.9.1