From Dev.to
Match a Declared Binary Payload Length Before Returning Its Bytes
Unpacking a header establishes that the header fits. It does not establish that the rest of a message has the declared length, that a version is supported, or that trailing data is acceptable. A parse...
