Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
donner::editor::sandbox::ReplayingRenderer Class Reference

Public Member Functions

 ReplayingRenderer (svg::RendererInterface &target)
 Constructs a replayer that will dispatch to target. The target's lifetime must exceed every call to pumpFrame().
 ReplayingRenderer (const ReplayingRenderer &)=delete
ReplayingRendereroperator= (const ReplayingRenderer &)=delete
ReplayStatus pumpFrame (std::span< const uint8_t > wire, ReplayReport &report)
 Replays the given wire-format bytes onto the target backend. The bytes are expected to begin with a kStreamHeader and end with kEndFrame.

Member Function Documentation

◆ pumpFrame()

ReplayStatus donner::editor::sandbox::ReplayingRenderer::pumpFrame ( std::span< const uint8_t > wire,
ReplayReport & report )

Replays the given wire-format bytes onto the target backend. The bytes are expected to begin with a kStreamHeader and end with kEndFrame.

Parameters
wireByte span containing the full frame (may be a view into stdout bytes, a mapped file, or a test buffer).
[out]reportPopulated with per-message statistics regardless of status.
Returns
kOk on full success, or an error discriminant describing where replay stopped.

The documentation for this class was generated from the following file: