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

One message in the decoded stream. The summary is meant for UI display (ImGui command-list rows, text dumps, structural diffs) — it is intentionally terse and not round-trippable. More...

#include "donner/editor/sandbox/FrameInspector.h"

Collaboration diagram for donner::editor::sandbox::DecodedCommand:
[legend]

Public Attributes

uint32_t index = 0
 Zero-based message index inside the wire stream. Index 0 is always the kStreamHeader message.
Opcode opcode = Opcode::kInvalid
 Opcode raw value. Use Opcode cast for type-safe comparisons.
int32_t depth = 0
 LIFO nesting depth at the point this command was emitted. Incremented by every push* and decremented by every pop*. Unbalanced streams can go negative briefly; the inspector clamps at zero for display.
std::size_t byteOffset = 0
 Byte offset of this message's header inside the wire buffer.
std::size_t byteLength = 0
 Total bytes this message occupies (8-byte header + payload).
std::string summary
 Human-readable one-liner (e.g. drawRect (10,10,30,30), setPaint fill=#FF0000 stroke=none). May be empty for opcodes the summarizer doesn't understand yet.

Detailed Description

One message in the decoded stream. The summary is meant for UI display (ImGui command-list rows, text dumps, structural diffs) — it is intentionally terse and not round-trippable.

Member Data Documentation

◆ byteLength

std::size_t donner::editor::sandbox::DecodedCommand::byteLength = 0

Total bytes this message occupies (8-byte header + payload).

◆ byteOffset

std::size_t donner::editor::sandbox::DecodedCommand::byteOffset = 0

Byte offset of this message's header inside the wire buffer.

◆ depth

int32_t donner::editor::sandbox::DecodedCommand::depth = 0

LIFO nesting depth at the point this command was emitted. Incremented by every push* and decremented by every pop*. Unbalanced streams can go negative briefly; the inspector clamps at zero for display.

◆ index

uint32_t donner::editor::sandbox::DecodedCommand::index = 0

Zero-based message index inside the wire stream. Index 0 is always the kStreamHeader message.

◆ opcode

Opcode donner::editor::sandbox::DecodedCommand::opcode = Opcode::kInvalid

Opcode raw value. Use Opcode cast for type-safe comparisons.

◆ summary

std::string donner::editor::sandbox::DecodedCommand::summary

Human-readable one-liner (e.g. drawRect (10,10,30,30), setPaint fill=#FF0000 stroke=none). May be empty for opcodes the summarizer doesn't understand yet.


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