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

Method load_file

libraries/AP_Filesystem/AP_Filesystem.cpp:318–322  ·  view source on GitHub ↗

Load a file's contents into memory. Returned object must be `delete`d to free the data. The data is guaranteed to be null-terminated such that it can be treated as a string. */

Source from the content-addressed store, hash-verified

316 treated as a string.
317 */
318FileData *AP_Filesystem::load_file(const char *filename)
319{
320 const Backend &backend = backend_by_path(filename);
321 return backend.fs.load_file(filename);
322}
323
324// returns null-terminated string; cr or lf terminates line
325bool AP_Filesystem::fgets(char *buf, uint8_t buflen, int fd)

Callers 4

find_last_logMethod · 0.45
lookup_locationMethod · 0.45
load_font_dataMethod · 0.45
draw_callsignMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected