Andrew Tridgell
a241b13f45
AP_Filesystem: use NEW_NOTHROW for new(std::nothrow)
2024-06-04 09:20:21 +10:00
Thomas Watson
0ca37387be
AP_Filesystem: guarantee load_file() data is null-terminated
...
Improves safety of use and clarity of users. Termination is not
included in the reported size to avoid changing user behavior or
misrepresenting the file contents.
2024-05-04 10:15:44 +10:00
Andrew Tridgell
8ae221eeb4
AP_Filesystem: removed the 3s grace period for file ops when armed
...
log file open now needs to happen in the logging thread
2021-06-15 16:42:02 +10:00
Andrew Tridgell
b23afc4a9e
AP_Filesystem: disallow file operations from main thread while armed
...
this stops all file operations from the main thread while armed,
allowing for a 3s grace time on arming to allow for initial log
file creation
2021-06-09 15:08:28 +10:00
Andrew Tridgell
773517a473
AP_Filesystem: added load_file() API
...
this makes it very easy to load a small file from sdcard or ROMFS
2020-11-18 09:11:36 +11:00