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

Method read

tests/HostTests/modules/Storage.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 bool read(storage_size_t address, void* dst, size_t size) override
29 {
30 for(unsigned i = 0; i < size; ++i) {
31 static_cast<uint8_t*>(dst)[i] = address + i;
32 }
33 return true;
34 }
35
36 bool write(storage_size_t, const void*, size_t) override
37 {

Callers 2

cycleFlashMethod · 0.45
testReadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected