IpcMessage class sealed
A length-prefixed, tagged Snapshot, Delta, CrdtSync, or reliable-sync
control frame (ResyncRequest / OutboxAck) (protocol.md § IPC). The
CrdtSync variant carries multi-writer plane traffic alongside the
single-producer mirror; the control frames ride the same framed, tagged
plane in reverse (receiver → sender) for reliable sync (#lzsync).
Properties
- crdtSync → CrdtSync?
-
The CrdtSync if this is one, otherwise
null.no setter - delta → Delta?
-
The Delta if this is one, otherwise
null.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isControl → bool
-
Whether this is a reliable-sync reverse-channel control frame
(ResyncRequest / OutboxAck) — no node content, so permission filtering
and blob spilling are the identity on it. Mirrors
IpcMessage::is_control.no setter - isCrdtSync → bool
-
no setter
- isDelta → bool
-
no setter
- isOutboxAck → bool
-
no setter
- isResyncRequest → bool
-
no setter
- isSnapshot → bool
-
no setter
- outboxAck → OutboxAck?
-
The OutboxAck if this is one, otherwise
null.no setter - resyncRequest → ResyncRequest?
-
The ResyncRequest if this is one, otherwise
null.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snapshot → Snapshot?
-
The Snapshot if this is one, otherwise
null.no setter
Methods
-
encodeJson(
) → Uint8List - UTF-8 JSON bytes of toWire.
-
encodeJsonStreaming(
) → Uint8List -
Streaming equivalent of encodeJson (
#lzdartstreamingjson): builds the JSON via writeJson into a StringBuffer instead ofjsonEncode(toWire()), so the intermediateMap<String, Object>(and the innerList/Mapallocations for the batch variants) is never materialized. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toWire(
) → Object - The externally-tagged wire shape.
-
writeJson(
StringSink sink) → void -
Streaming JSON encoder (
#lzdartstreamingjson): writes the canonical JSON for this IpcMessage directly intosink, avoiding the intermediateMap<String, Object>that toWire would produce and (for theSnapshot/Delta/CrdtSyncvariants) recursing into the payload's own writeJson so the per-batch allocations are eliminated too. Byte-identical tojsonEncode(toWire()).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decodeJson(
Object data) → IpcMessage - Decode UTF-8 JSON bytes (or a JSON string) into an IpcMessage.
-
fromWire(
Object? value) → IpcMessage -
ofCrdtSync(
CrdtSync crdtSync) → IpcMessage -
ofDelta(
Delta delta) → IpcMessage -
ofOutboxAck(
OutboxAck ack) → IpcMessage -
ofResyncRequest(
ResyncRequest request) → IpcMessage -
ofSnapshot(
Snapshot snapshot) → IpcMessage