Zero-heap event journal reader and deterministic player into Corium EventSinks.
More...
#include <EventJournal.hpp>
|
| | EventJournalReader (std::span< const uint8_t > journalData) noexcept |
| | Construct reader over a byte span.
|
| |
| bool | isValid () const noexcept |
| | Returns true if the journal header is valid (magic, version, schema match).
|
| |
| template<typename Sink > |
| size_t | replayInto (Sink &sink) noexcept |
| | Replay all valid records in the journal directly into an EventSink.
|
| |
| void | rewind () noexcept |
| | Rewind playback cursor to the first record.
|
| |
| size_t | totalRecords () const noexcept |
| | Total number of records declared in the header.
|
| |
template<typename EventVariant>
class corium::wire::EventJournalReader< EventVariant >
Zero-heap event journal reader and deterministic player into Corium EventSinks.
- Template Parameters
-
| EventVariant | Variant of supported event types. |
◆ EventJournalReader()
template<typename EventVariant >
Construct reader over a byte span.
◆ isValid()
template<typename EventVariant >
Returns true if the journal header is valid (magic, version, schema match).
◆ replayInto()
template<typename EventVariant >
template<typename Sink >
Replay all valid records in the journal directly into an EventSink.
- Template Parameters
-
| Sink | EventSink or EventBus handle type. |
- Parameters
-
| sink | Target sink to receive replayed events. |
- Returns
- Number of events successfully replayed.
◆ rewind()
template<typename EventVariant >
Rewind playback cursor to the first record.
◆ totalRecords()
template<typename EventVariant >
Total number of records declared in the header.
The documentation for this class was generated from the following file: