Statically allocated binary event journal writer for zero-heap post-mortem logging and record playback.
More...
|
| size_t | bytesWritten () const noexcept |
| | Total bytes written into buffer (header + all records).
|
| |
| std::span< const uint8_t > | data () const noexcept |
| | Read-only view of the serialized journal data.
|
| |
| constexpr | EventJournalWriter () noexcept |
| |
| template<typename Event > |
| bool | record (const Event &event, uint64_t timestampUs, EventPriority priority=EventPriority::Normal) noexcept |
| | Record a concrete typed event into the journal.
|
| |
| size_t | recordCount () const noexcept |
| | Number of records written.
|
| |
| void | reset () noexcept |
| | Reset journal to initial empty state.
|
| |
template<typename EventVariant, size_t BufferCapacity = 4096>
class corium::wire::EventJournalWriter< EventVariant, BufferCapacity >
Statically allocated binary event journal writer for zero-heap post-mortem logging and record playback.
- Template Parameters
-
| EventVariant | Variant of supported event types. |
| BufferCapacity | Total byte capacity of the journal storage buffer. |