MCPcopy Create free account
hub / github.com/ArduPilot/ArduRemoteID / read

Method read

RemoteIDModule/romfs.cpp:49–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49size_t ROMFS_Stream::read(uint8_t* buf, size_t size)
50{
51 const auto avail = available();
52 if (size > avail) {
53 size = avail;
54 }
55 memcpy(buf, &f.contents[offset], size);
56 offset += size;
57 return size;
58}
59
60int ROMFS_Stream::peek(void)
61{

Callers 4

get_private_keyFunction · 0.80
embed_fileFunction · 0.80
sign_fw.pyFile · 0.80
update_receiveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected