@exodus/bytes
    Preparing search index...
    • Implements isomorphic encode.

      Given a string, creates an Uint8Array of the same length with the string codepoints as byte values.

      Accepts only isomorphic string input and asserts that, throwing on any strings containing codepoints higher than U+00FF.

      Parameters

      • str: string

      Returns Uint8Array

      An Uint8Array containing the input bytes.