/workspaces/astro/sol3-sdk/cpp/sol3/core/size_delimited_log_writer.h Source File
|
Space-ng SDK
|
size_delimited_log_writer.h
Go to the documentation of this file.
Minimal append-only byte sink for streaming writes.
Definition: stream_writer.h:9
Definition: size_delimited_log_writer.h:34
void rewriteSizePrefixed(size_t offset, flatbuffers::span< uint8_t const > frame)
void open(cpp::fs::path log_path)
Opens or replaces the current log file for writing.
cpp::fs::path const & logPath() const
Definition: size_delimited_log_writer.h:51
void commit(size_t message_count)
void write(char const *data, size_t size) override
bool isOpen() const
SizeDelimitedLogWriter(cpp::fs::path log_path)
void rollback()
Roll back to currentOffset(), discarding uncommitted writes.
~SizeDelimitedLogWriter()
void writeSizePrefixed(flatbuffers::span< uint8_t const > frame)
size_t currentOffset() const
Returns the current write position in the file (always 8-byte aligned).
void writeNonSizePrefixedUnaligned(flatbuffers::span< uint8_t const > data)
Definition: any_message_input.h:15
Generated by