Class: BinaryArrayBase

BinaryArrayBase(dv, type, offset, length)

Class for returning array members from Binary objects

Constructor

new BinaryArrayBase(dv, type, offset, length)

Creates a new customized array

.

Creates a new customized array

Parameters:
Name Type Description
dv DataView

The DataView handling the buffer where the data lives

type object

The type of the array members from Types

offset number

The offset of the first member of the array into the buffer

length number

The length of the array

Source:

Methods

map(fn) → {array}

Proxy array methods using this iterator

.

Proxy array methods using this iterator

Parameters:
Name Type Description
fn function

The function to apply on the array elements

Source:
Returns:
  • The new generated array (not bound to original values)
Type
array

toJSON() → {string}

Transform this array into a JSON string

.

Transform this array into a JSON string

Source:
Returns:
  • The JSON string representing this array
Type
string