MCPcopy Create free account
hub / github.com/andysworkshop/stm32plus / writeBlock

Method writeBlock

lib/src/device/CachedBlockDevice.cpp:86–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 */
85
86 bool CachedBlockDevice::writeBlock(const void *src,uint32_t blockIndex) {
87
88 // write through
89
90 if(!_device.writeBlock(src,blockIndex))
91 return false;
92
93 // and into the cache
94
95 writeToCache(src,blockIndex);
96 return true;
97 }
98
99 /*
100 * find cache entry and write

Callers 2

checkFlushMethod · 0.45
flushMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected