Inverse of serialize.
Typically, this returns a deep clone of the original value, not the same literal reference. Indeed, it is impossible to return the original reference on a different replica.
Returns a Uint8Array that is the serialized form of value.
To recover the original value, use deserialize.
Generated using TypeDoc
Serializer for a SavedStateTree, i.e., an output of Collab.save.
IRuntime implementations may use instance to convert Collabs's saved states into a single Uint8Array.
This is a singleton class; use instance instead of the constructor.