|
rcbench
Servo and ESC test bench: panel, IOmcu and shared C
|
The byte sink a log writer writes to, with its commit. More...
#include <log_writer.h>
Data Fields | |
| int(*) | write (void *ctx, const void *data, size_t len) |
| Returns bytes written, or a negative value on failure. | |
| bool(*) | flush (void *ctx) |
| Commit what has been written, so that a power cut keeps it. | |
| void * | ctx |
The byte sink a log writer writes to, with its commit.
| bool(*) log_sink_t::flush(void *ctx) |
Commit what has been written, so that a power cut keeps it.
NULL for a sink that needs no commit, such as memory. Returns false on failure. Writing a row is not keeping it: on FAT (file allocation table) the directory entry carries the length, and until that entry is written the file reads as 0 bytes whatever the data sectors hold.