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

    Function utf8ByteLength

    • Calculates the byte length of a string when UTF-8 encoded.

      This is more efficient than encoding when you only need the length.

      Parameters

      • str: string

        The string to measure

      Returns number

      The byte length when UTF-8 encoded