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