SymbolicTypedArray
BYTES_PER_ELEMENT: number
[symbolic_typed_array/symbolic_typed_array.ts:40]
The size in bytes of each element in the array.
get buffer(): ArrayBufferLike
[symbolic_typed_array/symbolic_typed_array.ts:87]
set buffer(buffer: ArrayBufferLike
): void
[symbolic_typed_array/symbolic_typed_array.ts:95]
The ArrayBuffer instance referenced by the array.
ArrayBufferLike
The ArrayBuffer instance referenced by the array.
Name | Type | Default | Description |
---|---|---|---|
buffer
|
ArrayBufferLike
|
void
get byteLength(): number
[symbolic_typed_array/symbolic_typed_array.ts:102]
The length in bytes of the array.
number
get byteOffset(): any
[symbolic_typed_array/symbolic_typed_array.ts:135]
The offset in bytes of the array.
any
get length(): number
[symbolic_typed_array/symbolic_typed_array.ts:123]
The number of elements in this buffer. Actual byte size is (length * SIZE_OF_FLOAT)
.
number
get offset(): number
[symbolic_typed_array/symbolic_typed_array.ts:109]
The number in this buffer. Actual offset size is (offset * SIZE_OF_FLOAT)
.
number
copyWithin
copyWithin(target: number
, start: number
, end?: number
): this
[symbolic_typed_array/symbolic_typed_array.ts:153]
Returns the this object after copying a section of the array identified by start and end to the same array starting at position target
Name | Type | Default | Description |
---|---|---|---|
target
|
number
|
If target is negative, it is treated as length+target where length is the length of the array. |
|
start
|
number
|
If start is negative, it is treated as length+start. If end is negative, it is treated as length+end. |
|
end
|
number
|
If not specified, length of the this object is used as its default value. |
this
entries
entries(): IterableIterator<[number
, number
]
>
[symbolic_typed_array/symbolic_typed_array.ts:245]
Returns an iterable of key, value pairs for every entry in the array
IterableIterator<[number
, number
]
>
fill
fill(value: number
, start?: number
, end?: number
): this
[symbolic_typed_array/symbolic_typed_array.ts:166]
Returns the this object after filling the section identified by start and end with value
Name | Type | Default | Description |
---|---|---|---|
value
|
number
|
value to fill array section with |
|
start
|
number
|
index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array. |
|
end
|
number
|
index to stop filling the array at. If end is negative, it is treated as length+end. |
this
includes
includes(searchElement: number
, fromIndex?: number
| undefined
): boolean
[symbolic_typed_array/symbolic_typed_array.ts:210]
Name | Type | Default | Description |
---|---|---|---|
searchElement
|
number
|
||
fromIndex
|
|
boolean
indexOf
indexOf(searchElement: number
, fromIndex?: number
): number
[symbolic_typed_array/symbolic_typed_array.ts:177]
Returns the index of the first occurrence of a value in an array.
Name | Type | Default | Description |
---|---|---|---|
searchElement
|
number
|
The value to locate in the array. |
|
fromIndex
|
number
|
The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. |
number
join
join(separator?: string
): string
[symbolic_typed_array/symbolic_typed_array.ts:186]
Adds all the elements of an array separated by the specified separator string.
Name | Type | Default | Description |
---|---|---|---|
separator
|
string
|
A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma. |
string
keys
keys(): IterableIterator<number
>
[symbolic_typed_array/symbolic_typed_array.ts:252]
Returns an iterable of keys in the array
IterableIterator<number
>
lastIndexOf
lastIndexOf(searchElement: number
, fromIndex?: number
): number
[symbolic_typed_array/symbolic_typed_array.ts:196]
Returns the index of the last occurrence of a value in an array.
Name | Type | Default | Description |
---|---|---|---|
searchElement
|
number
|
The value to locate in the array. |
|
fromIndex
|
number
|
The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0. |
number
set
set(array: ArrayLike<number
>
, offset?: number
| undefined
): void
[symbolic_typed_array/symbolic_typed_array.ts:219]
Sets a value or an array of values.
Name | Type | Default | Description |
---|---|---|---|
array
|
ArrayLike<
|
A typed or untyped array of values to set. |
|
offset
|
|
The index in the current array at which the values are to be written. |
void
sort
sort(compareFn?: function
): this
[symbolic_typed_array/symbolic_typed_array.ts:205]
Sorts an array.
Name | Type | Default | Description |
---|---|---|---|
compareFn
|
function
|
The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order. |
this
toActual
toActual(): T
[symbolic_typed_array/symbolic_typed_array.ts:82]
Convert SymbolicTypedArray instance into actual TypedArray instance.
T
actual typed array
toLocaleString
toLocaleString(): string
[symbolic_typed_array/symbolic_typed_array.ts:226]
Converts a number to a string by using the current locale.
string
toString
toString(): string
[symbolic_typed_array/symbolic_typed_array.ts:233]
Returns a string representation of an array.
string
values
values(): IterableIterator<number
>
[symbolic_typed_array/symbolic_typed_array.ts:259]
Returns an iterable of values in the array
IterableIterator<number
>
-
Properties -
Accessors -
Methods