MCPcopy Create free account
hub / github.com/SmingHub/Sming / load

Method load

Sming/Components/Storage/src/PartitionTable.cpp:17–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15namespace Storage
16{
17void PartitionTable::load(const esp_partition_info_t* entry, unsigned count)
18{
19 mEntries.clear();
20 for(; count != 0; --count, ++entry) {
21 // name may not be zero-terminated
22 char name[Partition::nameSize + 1];
23 memcpy(name, entry->name, Partition::nameSize);
24 name[Partition::nameSize] = '\0';
25 add(name, {entry->type, entry->subtype}, entry->offset, entry->size, entry->flags);
26 }
27}
28
29} // namespace Storage

Callers 5

doxy-boot.jsFile · 0.45
WelcomeFunction · 0.45
get_tool_infoFunction · 0.45
load_familiesFunction · 0.45
loadPartitionsMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected