BigInt64Array

fromArray

RESCRIPT
let fromArray: array<bigint> => t

fromArray creates a BigInt64Array from an array of values. See TypedArray constructor on MDN

fromArrayLikeOrIterable

RESCRIPT
let fromArrayLikeOrIterable: ('a, ~map: ('b, int) => bigint=?) => t

fromArrayLikeOrIterable creates a BigInt64Array from an array-like or iterable object. See TypedArray.from on MDN

fromArrayLikeOrIterableWithMap

Deprecated

RESCRIPT
let fromArrayLikeOrIterableWithMap: ('a, ('b, int) => bigint) => t

fromArrayLikeOrIterableWithMap creates a BigInt64Array from an array-like or iterable object and applies the mapping function to each item. The mapping function expects (value, index). See TypedArray.from on MDN

fromBuffer

RESCRIPT
let fromBuffer: (ArrayBuffer.t, ~byteOffset: int=?, ~length: int=?) => t

fromBuffer creates a BigInt64Array from an ArrayBuffer.t. See TypedArray constructor on MDN

Note: This is a potentially unsafe operation. Ensure the buffer is large enough and only accessed within its bounds.

fromBufferToEnd

Deprecated

RESCRIPT
let fromBufferToEnd: (ArrayBuffer.t, ~byteOffset: int) => t

fromBufferToEnd creates a BigInt64Array from an ArrayBuffer.t, starting at a particular offset and continuing through to the end. See TypedArray constructor on MDN

Note: This is a potentially unsafe operation. Ensure the buffer is large enough and only accessed within its bounds.

fromBufferWithRange

Deprecated

RESCRIPT
let fromBufferWithRange: (ArrayBuffer.t, ~byteOffset: int, ~length: int) => t

fromBufferWithRange creates a BigInt64Array from an ArrayBuffer.t, starting at a particular offset and consuming length bytes. See TypedArray constructor on MDN

Note: This is a potentially unsafe operation. Ensure the buffer is large enough and only accessed within its bounds.

fromLength

RESCRIPT
let fromLength: int => t

fromLength creates a zero-initialized BigInt64Array to hold the specified count of numbers; this is not a byte length. See TypedArray constructor on MDN

Note: This is a potentially unsafe operation. Ensure the buffer is large enough and only accessed within its bounds.

ignore

RESCRIPT
let ignore: t => unit

ignore(bigIntArray) ignores the provided bigIntArray and returns unit.

This helper is useful when you want to discard a value (for example, the result of an operation with side effects) without having to store or process it further.

t

RESCRIPT
type t = TypedArray.t<bigint>

The BigInt64Array typed array represents an array of 64-bit signed integers in platform byte order. See BigInt64Array on MDN