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