@exodus/bytes
    Preparing search index...
    • Encode a string to iso-8859-1 bytes.

      Throws on non well-formed strings or any codepoints which could not be encoded in iso-8859-1.

      Same as:

      const latin1fromString = createSinglebyteEncoder('iso-8859-1', { mode: 'fatal' })
      

      Parameters

      • string: string

        The string to encode

      Returns Uint8Array

      The encoded bytes