Skip to main content

Module wire

Module wire 

Source
Expand description

Scenes on the wire: a scene to its proto::Scene and back, and the patch between two scenes. Each image file travels once: a scene carries every one its nodes show, a patch only those the scene before it didn’t have.

Functions§

apply
Applies a patch to scene, or says why it can’t — leaving the scene as it was.
decode
A node from the wire, or why it isn’t one.
decode_scene
The scene a stream message carries; image files in held aren’t decoded again.
diff
The replacements that turn old into new: the highest nodes whose own attributes or number of children changed, by id.
encode
patch
The patch that turns old, as last sent, into new: the nodes that changed and the image files old didn’t have.
scene
A whole scene for the wire: its tree and every image file it shows.