Returns a Uint8Array that is the serialized form of value.
To recover the original value, use deserialize.
Returns an instance of OptionalSerializer that uses valueSerializer to serialize present values.
This method may cache instances internally to save memory.
Generated using TypeDoc
Serializes Optional
<T>
using a serializer for T. This is slightly more efficient than DefaultSerializer, and it works with arbitrary T.Construct using getInstance.