@qualithm/mqtt-wire - v0.1.5
    Preparing search index...

    Function decodeMqttBinary

    • 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.

      Parameters

      • buffer: Uint8Array

        The buffer containing the length-prefixed binary data

      • offset: number

        The offset to start reading from

      Returns DecodeResult<MqttBinaryDecodeResult>

      DecodeResult with decoded bytes and bytes read, or error