ArraybufferUtils Class

Module: BinaryUtils

ArraybufferUtils contains methods to convert from and to ArrayBuffer binary format

Methods

fromBase64

(
  • base64
)
Arraybuffer

Create arraybuffer from base64 string

Parameters:

  • base64 String

Returns:

Arraybuffer:

data

fromBinaryString

(
  • str
)
Arraybuffer

Create arraybuffer from binary string

Parameters:

  • str String

Returns:

Arraybuffer:

data

fromBuffer

(
  • buffer
)
Arraybuffer

Create arraybuffer from Nodejs buffer

Parameters:

  • buffer Buffer

Returns:

Arraybuffer:

data