A description for the serializer.
The function that deserializes a value from bytes. It returns the deserialized value and the number of bytes read.
The fixed size of the serialized value in bytes, or null if it is variable.
The maximum size a serialized value can be in bytes, or null if it is variable.
The function that serializes a value into bytes.
An object that can serialize and deserialize a value to and from a
Uint8Array. It supports serializing looser types than it deserializes for convenience. For example, abigintserializer will always deserialize to abigintbut can be used to serialize anumber.