The public API should support consuming a byte stream, peeking at that byte stream to determine the serialization format by looking at the first three bits, and then return a result indicating the serialization type similar to Result<SerializationGeneric, Error> that indicates the type of serialization it was sent.
The public API should support consuming a byte stream, peeking at that byte stream to determine the serialization format by looking at the first three bits, and then return a result indicating the serialization type similar to
Result<SerializationGeneric, Error>
that indicates the type of serialization it was sent.