map.apps Bundle APIs 4.20.0
    Preparing search index...

    Function base64DecodeToUtf8Arr

    • Converts a Base64 string into a UTF-8 array.

      If your aim is to build a buffer of 16-bit / 32-bit / 64-bit raw data, use the blocksSize argument, which is the number of bytes of which the uint8Array.buffer.bytesLength property must result a multiple.

      • 1 or omitted for ASCII, binary strings (i.e., a string in which each character in the string is treated as a byte of binary data) or UTF-8-encoded strings,
      • 2 for UTF-16 strings,
      • 4 for UTF-32 strings

      Parameters

      • base64Input: string

        the base64 input

      • OptionalblocksSize: number

        1, 2 or 4 see above.

      Returns Uint8Array

      decoded bytes.