Encodes the instance as binary and returns the data as a Uint8Array.
Given a DataView, serialize the instance inside and return the number of bytes written.
Returns the expected length of the serialized output in bytes
Encodes the instance as binary and returns the data as a Uint8Array.