MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / read_block

Method read_block

libraries/AP_HAL_Linux/Storage.cpp:184–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void Storage::read_block(void *dst, uint16_t loc, size_t n)
185{
186 if (loc >= sizeof(_buffer)-(n-1)) {
187 return;
188 }
189 init();
190 memcpy(dst, &_buffer[loc], n);
191}
192
193void Storage::write_block(uint16_t loc, const void *src, size_t n)
194{

Callers

nothing calls this directly

Calls 2

memcpyFunction · 0.85
initFunction · 0.70

Tested by

no test coverage detected