Interface BigUint64ArrayConstructor
interface BigUint64ArrayConstructor {
new BigUint64ArrayConstructor(
length?: number,
): BigUint64Array<ArrayBuffer>;
new BigUint64ArrayConstructor(
array: ArrayLike<bigint> | Iterable<bigint>,
): BigUint64Array<ArrayBuffer>;
new BigUint64ArrayConstructor<
TArrayBuffer extends ArrayBufferLike = ArrayBuffer,
>(
buffer: TArrayBuffer,
byteOffset?: number,
length?: number,
): BigUint64Array<TArrayBuffer>;
new BigUint64ArrayConstructor(
array: ArrayBuffer | ArrayLike<bigint>,
): BigUint64Array<ArrayBuffer>;
BYTES_PER_ELEMENT: number;
prototype: BigUint64Array;
from(arrayLike: ArrayLike<bigint>): BigUint64Array;
from<U>(
arrayLike: ArrayLike<U>,
mapfn: (v: U, k: number) => bigint,
thisArg?: any,
): BigUint64Array;
of(...items: bigint[]): BigUint64Array<ArrayBuffer>;
}
new BigUint64ArrayConstructor(
length?: number,
): BigUint64Array<ArrayBuffer>;
new BigUint64ArrayConstructor(
array: ArrayLike<bigint> | Iterable<bigint>,
): BigUint64Array<ArrayBuffer>;
new BigUint64ArrayConstructor<
TArrayBuffer extends ArrayBufferLike = ArrayBuffer,
>(
buffer: TArrayBuffer,
byteOffset?: number,
length?: number,
): BigUint64Array<TArrayBuffer>;
new BigUint64ArrayConstructor(
array: ArrayBuffer | ArrayLike<bigint>,
): BigUint64Array<ArrayBuffer>;
BYTES_PER_ELEMENT: number;
prototype: BigUint64Array;
from(arrayLike: ArrayLike<bigint>): BigUint64Array;
from<U>(
arrayLike: ArrayLike<U>,
mapfn: (v: U, k: number) => bigint,
thisArg?: any,
): BigUint64Array;
of(...items: bigint[]): BigUint64Array<ArrayBuffer>;
}
Index
Constructors
constructor
- new BigUint64ArrayConstructor(length?: number): BigUint64Array<ArrayBuffer>
Parameters
Optional
length: number
Returns BigUint64Array<ArrayBuffer>
- new BigUint64ArrayConstructor(
array: ArrayLike<bigint> | Iterable<bigint>,
): BigUint64Array<ArrayBuffer> Returns BigUint64Array<ArrayBuffer>
- new BigUint64ArrayConstructor<
TArrayBuffer extends ArrayBufferLike = ArrayBuffer,
>(
buffer: TArrayBuffer,
byteOffset?: number,
length?: number,
): BigUint64Array<TArrayBuffer> Type Parameters
- TArrayBuffer extends ArrayBufferLike = ArrayBuffer
Parameters
- buffer: TArrayBuffer
Optional
byteOffset: numberOptional
length: number
Returns BigUint64Array<TArrayBuffer>
- new BigUint64ArrayConstructor(
array: ArrayBuffer | ArrayLike<bigint>,
): BigUint64Array<ArrayBuffer> Parameters
- array: ArrayBuffer | ArrayLike<bigint>
Returns BigUint64Array<ArrayBuffer>
Methods
from
- from(arrayLike: ArrayLike<bigint>): BigUint64Array
Creates an array from an array-like or iterable object.
Parameters
- arrayLike: ArrayLike<bigint>
An array-like or iterable object to convert to an array.
Returns BigUint64Array
- arrayLike: ArrayLike<bigint>
- from<U>(
arrayLike: ArrayLike<U>,
mapfn: (v: U, k: number) => bigint,
thisArg?: any,
): BigUint64Array Type Parameters
Returns BigUint64Array
of
- of(...items: bigint[]): BigUint64Array<ArrayBuffer>
Returns a new array from a set of elements.
Parameters
- ...items: bigint[]
A set of elements to include in the new array object.
Returns BigUint64Array<ArrayBuffer>
- ...items: bigint[]
The size in bytes of each element in the array.