@cnri/encoding
    Preparing search index...

    Variable toBytes

    toBytes: (str: string) => Uint8Array<ArrayBuffer>

    Type declaration

      • (str: string): Uint8Array<ArrayBuffer>
      • Converts a string to a UTF-8 encoded byte array.

        Parameters

        • str: string

          The string to convert

        Returns Uint8Array<ArrayBuffer>

        A Uint8Array containing the UTF-8 encoded bytes