@edgetoken/core
    Preparing search index...

    Function fromBytes

    • Decodes a Uint8Array into a UTF-8 string.

      Parameters

      • bytes: Uint8Array

        The binary data buffer to decode.

      Returns string

      The decoded UTF-8 string.

      const text = fromBytes(new Uint8Array([104, 101, 108, 108, 111])); // "hello"