Serialization Factory
An abstraction for serializing and deserializing objects, with support for versioning of the wire format via a header / prefix in the bytes.
Properties
If there is a need to nest serialization/deserialization with a modified context during serialization or deserialization, this will return the current context used to start serialization/deserialization.
A context to use as a default if you do not require a specially configured context. It will be the current context if the use is somehow nested (see currentContext).
Functions
Deserialize the bytes in to an object, using the prefixed bytes to determine the format.
Deserialize the bytes in to an object, using the prefixed bytes to determine the format.
Serialize an object to bytes using the preferred serialization format version from the context.
Change the current context inside the block to that supplied.