MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / diskRead

Method diskRead

lib/vfs/fatfs.cc:232–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230
231public:
232 DRESULT diskRead(BYTE* buffer, LBA_t sector, UINT count)
233 {
234 auto bytes = getLogicalSector(sector, count);
235 memcpy(buffer, bytes.cbegin(), bytes.size());
236 return RES_OK;
237 }
238
239 DRESULT diskWrite(const BYTE* buffer, LBA_t sector, UINT count)
240 {

Callers 1

disk_readFunction · 0.80

Calls 2

cbeginMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected