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