@s2-dev/streamstore - v0.18.1
    Preparing search index...

    Function utf8ByteLength

    Low-level utilities for record bodies.

    • Calculate the UTF-8 byte length of a string. Handles all Unicode characters including surrogate pairs correctly.

      Parameters

      • str: string

        The string to measure

      Returns number

      The byte length when encoded as UTF-8