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

    Function hasCompleteVariableByteInteger

    • Checks if a buffer contains a complete variable byte integer at the given offset.

      This is useful for determining if enough data has been buffered before attempting to decode.

      Parameters

      • buffer: Uint8Array

        The buffer to check

      • offset: number

        The offset to start checking from

      Returns boolean

      true if a complete variable byte integer is available