Skip to main content

Module wire

Module wire 

Source
Expand description

Scenes and their edits on the wire: a scene to its proto::Scene and back, and Edits to the proto::Patch the watch stream sends and back (patch). Each image file and font file travels once: a scene carries every one its nodes use, a patch only those the scene before it didn’t have. It does no I/O.

Functions§

apply
Applies a patch to scene, whose files uses counts, as a browser holding the scene does — or says why it can’t, leaving both as they were.
decode
A node from the wire, or why it isn’t one.
decode_scene
The scene a stream message carries; image and font files held already has aren’t decoded or checked again.
encode
encode_own
A node’s own attributes for the wire: its children aside.
patch
edits as a patch.
scene
A whole scene for the wire: its tree and every image file it shows.