Phaser API Documentation

  Version: 

Member of: Phaser.Utils.Base64

<static> Base64ToArrayBuffer(base64)

Description:

Converts a base64 string, either with or without a data uri, into an Array Buffer.

Parameters:

name type description
base64 string

The base64 string to be decoded. Can optionally contain a data URI header, which will be stripped out prior to decoding.

Returns:
Description:

An ArrayBuffer decoded from the base64 data.

Type:
  • ArrayBuffer
Since: 3.18.0