The type of the value to serialize.
The type of the deserialized value. Defaults to From.
A description for the serializer.
The function that deserializes a value from bytes. It returns the deserialized value and the number of bytes read.
Optional offset: numberThe 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.
Generated using TypeDoc
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.