SemanticsWireDecoder class final
Client side: replays the encoder's frames, holding the flat node state and rebuilding a SemanticTree after each. One instance per session.
Constructors
- SemanticsWireDecoder({int maxWirePayloadLength = maxRemoteDocumentFramePayloadLength})
Properties
-
changedIds
→ List<
String> -
Node ids whose serialized form changed in the most recently applied frame
(every id on a full frame). The wire diff already carries exactly this, so
surfacing it lets a consumer push a delta instead of the whole tree.
no setter
-
contentReplacements
→ Map<
SemanticNodeId, SemanticNode> ? -
The nodes the most recently applied frame rebuilt, when it changed only
the content of nodes already in the tree: those nodes and their
ancestors, by id. A consumer can advance a SemanticsOwner with
updateRetainedNodesinstead of diffing the whole tree. Null after a full frame or a structural patch.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isPrimed → bool
-
Whether a full frame has been applied (so patches have a base to land on).
no setter
- maxWirePayloadLength → int
-
Maximum accepted frame and equivalent retained FULL payload bytes.
final
-
removedIds
→ List<
String> -
Node ids removed by the most recently applied frame (empty on a full frame,
which replaces the whole tree).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- wasFull → bool
-
Whether the most recently applied frame was a full (resync) frame — a
consumer should treat changedIds as "re-read everything".
no setter
Methods
-
apply(
List< int> bytes) → SemanticTree? - Applies one wire payload and returns the reconstructed tree, or null if the payload is malformed or a patch arrives before any full frame (a desync the caller should ignore, keeping the last good tree).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited