Decodes binary data with MQTT length prefix.
Binary data in MQTT is prefixed with a 2-byte big-endian length, similar to strings but without UTF-8 validation.
The buffer containing the length-prefixed binary data
The offset to start reading from
DecodeResult with decoded bytes and bytes read, or error
Decodes binary data with MQTT length prefix.
Binary data in MQTT is prefixed with a 2-byte big-endian length, similar to strings but without UTF-8 validation.