SuperBlock
Defined in: src/backends/single_buffer.ts:173
The super block structure for a single-buffer file system
Extends
Section titled “Extends”BigUint64Array<ArrayBuffer,this>
Indexable
Section titled “Indexable”[
index:number]:bigint
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SuperBlock(…
args):SuperBlock
Defined in: src/backends/single_buffer.ts:178
Parameters
Section titled “Parameters”…[ArrayBufferLike, number, number]
Returns
Section titled “Returns”SuperBlock
Overrides
Section titled “Overrides”$from.typed(BigUint64Array)<ArrayBufferLike>.constructor
Properties
Section titled “Properties”[toStringTag]
Section titled “[toStringTag]”
readonly[toStringTag]:"BigUint64Array"
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:674
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).[toStringTag]
buffer
Section titled “buffer”
readonlybuffer:ArrayBuffer
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:443
The ArrayBuffer instance referenced by the array.
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).buffer
byteLength
Section titled “byteLength”
readonlybyteLength:number
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:446
The length in bytes of the array.
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).byteLength
byteOffset
Section titled “byteOffset”
readonlybyteOffset:number
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:449
The offset in bytes of the array.
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).byteOffset
BYTES_PER_ELEMENT
Section titled “BYTES_PER_ELEMENT”
readonlyBYTES_PER_ELEMENT:number
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:440
The size in bytes of each element in the array.
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).BYTES_PER_ELEMENT
constructor
Section titled “constructor”
readonlyconstructor: typeofSuperBlock
Defined in: src/backends/single_buffer.ts:176
The initial value of Object.prototype.constructor is the standard built-in Object constructor.
length
Section titled “length”
readonlylength:number
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:559
The length of the array.
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).length
metadata
Section titled “metadata”metadata:
MetadataBlock
Defined in: src/backends/single_buffer.ts:255
alignment
Section titled “alignment”
readonlystaticalignment:number
Defined in: node_modules/memium/dist/structs.shared.d.ts:11
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).alignment
array?
Section titled “array?”
readonlystaticoptionalarray?:TypeArrayConstructor<ArrayBufferView<ArrayBufferLike>>
Defined in: node_modules/memium/dist/types.d.ts:14
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).array
BYTES_PER_ELEMENT?
Section titled “BYTES_PER_ELEMENT?”
readonlystaticoptionalBYTES_PER_ELEMENT?:number
Defined in: node_modules/memium/dist/decorators.d.ts:65
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).BYTES_PER_ELEMENT
isDynamic?
Section titled “isDynamic?”
readonlystaticoptionalisDynamic?:boolean
Defined in: node_modules/memium/dist/structs.shared.d.ts:13
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).isDynamic
isUnion
Section titled “isUnion”
readonlystaticisUnion:boolean
Defined in: node_modules/memium/dist/structs.shared.d.ts:12
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).isUnion
staticname:string='SuperBlock'
Defined in: src/backends/single_buffer.ts:174
Returns the name of the function. Function names are read-only and can not be changed.
Overrides
Section titled “Overrides”$from.typed(BigUint64Array).name
readonlystaticsize:number
Defined in: node_modules/memium/dist/types.d.ts:13
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).size
Accessors
Section titled “Accessors”_padding
Section titled “_padding”Defined in: src/backends/single_buffer.ts:261
Padded to 256 bytes
checksum
Section titled “checksum”Defined in: src/backends/single_buffer.ts:221
The crc32c checksum for the super block.
Defined in: src/backends/single_buffer.ts:233
Flags for the file system. Currently unused
inode_format
Section titled “inode_format”Defined in: src/backends/single_buffer.ts:230
Which format of Inode is used
Defined in: src/backends/single_buffer.ts:258
An optional label for the file system
Defined in: src/backends/single_buffer.ts:224
Signature for the superblock.
metadata_block_size
Section titled “metadata_block_size”Defined in: src/backends/single_buffer.ts:248
The size in bytes of a metadata block. Not currently configurable.
metadata_offset
Section titled “metadata_offset”Defined in: src/backends/single_buffer.ts:253
Offset of the current metadata block
metadata_offset_
Section titled “metadata_offset_”Defined in: src/backends/single_buffer.ts:251
Reserved for 64-bit offset expansion
total_bytes
Section titled “total_bytes”Defined in: src/backends/single_buffer.ts:239
The total size of the entire file system, including the super block and metadata
used_bytes
Section titled “used_bytes”Defined in: src/backends/single_buffer.ts:236
The number of used bytes, including the super block and metadata
Defined in: src/backends/single_buffer.ts:242
A UUID for this file system
version
Section titled “version”Defined in: src/backends/single_buffer.ts:227
The version of the on-disk format
Methods
Section titled “Methods”[iterator]()
Section titled “[iterator]()”[iterator]():
ArrayIterator<bigint>
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:672
Returns
Section titled “Returns”ArrayIterator<bigint>
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).[iterator]
at(
index):bigint|undefined
Defined in: ../../node_modules/typescript/lib/lib.es2022.array.d.ts:118
Returns the item located at the specified index.
Parameters
Section titled “Parameters”number
The zero-based index of the desired code unit. A negative index will count back from the last item.
Returns
Section titled “Returns”bigint | undefined
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).at
copyWithin()
Section titled “copyWithin()”copyWithin(
target,start,end?):this
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:460
Returns the this object after copying a section of the array identified by start and end to the same array starting at position target
Parameters
Section titled “Parameters”target
Section titled “target”number
If target is negative, it is treated as length+target where length is the length of the array.
number
If start is negative, it is treated as length+start. If end is negative, it is treated as length+end.
number
If not specified, length of the this object is used as its default value.
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).copyWithin
entries()
Section titled “entries()”entries():
ArrayIterator<[number,bigint]>
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:463
Yields index, value pairs for every entry in the array.
Returns
Section titled “Returns”ArrayIterator<[number, bigint]>
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).entries
every()
Section titled “every()”every(
predicate,thisArg?):boolean
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:473
Determines whether all the members of an array satisfy the specified test.
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(value, index, array) => boolean
A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns false, or until the end of the array.
thisArg?
Section titled “thisArg?”any
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).every
fill()
Section titled “fill()”fill(
value,start?,end?):this
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:483
Changes all array elements from start to end index to a static value and returns the modified array
Parameters
Section titled “Parameters”bigint
value to fill array section with
start?
Section titled “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.
number
index to stop filling the array at. If end is negative, it is treated as length+end.
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).fill
filter()
Section titled “filter()”filter(
predicate,thisArg?):BigUint64Array<ArrayBuffer>
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:492
Returns the elements of an array that meet the condition specified in a callback function.
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(value, index, array) => any
A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.
thisArg?
Section titled “thisArg?”any
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
Returns
Section titled “Returns”BigUint64Array<ArrayBuffer>
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).filter
find()
Section titled “find()”find(
predicate,thisArg?):bigint|undefined
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:503
Returns the value of the first element in the array where predicate is true, and undefined otherwise.
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(value, index, array) => boolean
find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.
thisArg?
Section titled “thisArg?”any
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
Returns
Section titled “Returns”bigint | undefined
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).find
findIndex()
Section titled “findIndex()”findIndex(
predicate,thisArg?):number
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:514
Returns the index of the first element in the array where predicate is true, and -1 otherwise.
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(value, index, array) => boolean
find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1.
thisArg?
Section titled “thisArg?”any
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).findIndex
findLast()
Section titled “findLast()”Call Signature
Section titled “Call Signature”findLast<
S>(predicate,thisArg?):S|undefined
Defined in: ../../node_modules/typescript/lib/lib.es2023.array.d.ts:862
Returns the value of the last element in the array where predicate is true, and undefined otherwise.
Type Parameters
Section titled “Type Parameters”S extends bigint
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(value, index, array) => value is S
findLast calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLast immediately returns that element value. Otherwise, findLast returns undefined.
thisArg?
Section titled “thisArg?”any
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
Returns
Section titled “Returns”S | undefined
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).findLast
Call Signature
Section titled “Call Signature”findLast(
predicate,thisArg?):bigint|undefined
Defined in: ../../node_modules/typescript/lib/lib.es2023.array.d.ts:870
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(value, index, array) => unknown
thisArg?
Section titled “thisArg?”any
Returns
Section titled “Returns”bigint | undefined
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).findLast
findLastIndex()
Section titled “findLastIndex()”findLastIndex(
predicate,thisArg?):number
Defined in: ../../node_modules/typescript/lib/lib.es2023.array.d.ts:888
Returns the index of the last element in the array where predicate is true, and -1 otherwise.
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(value, index, array) => unknown
findLastIndex calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
thisArg?
Section titled “thisArg?”any
If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).findLastIndex
forEach()
Section titled “forEach()”forEach(
callbackfn,thisArg?):void
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:523
Performs the specified action for each element in an array.
Parameters
Section titled “Parameters”callbackfn
Section titled “callbackfn”(value, index, array) => void
A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
thisArg?
Section titled “thisArg?”any
An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).forEach
includes()
Section titled “includes()”includes(
searchElement,fromIndex?):boolean
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:530
Determines whether an array includes a certain element, returning true or false as appropriate.
Parameters
Section titled “Parameters”searchElement
Section titled “searchElement”bigint
The element to search for.
fromIndex?
Section titled “fromIndex?”number
The position in this array at which to begin searching for searchElement.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).includes
indexOf()
Section titled “indexOf()”indexOf(
searchElement,fromIndex?):number
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:538
Returns the index of the first occurrence of a value in an array, or -1 if it is not present.
Parameters
Section titled “Parameters”searchElement
Section titled “searchElement”bigint
The value to locate in the array.
fromIndex?
Section titled “fromIndex?”number
The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).indexOf
isUnused()
Section titled “isUnused()”isUnused(
offset,length):boolean
Defined in: src/backends/single_buffer.ts:311
Internal
Checks to see if length bytes are unused, starting at offset.
Not for external use!
Parameters
Section titled “Parameters”offset
Section titled “offset”number
length
Section titled “length”number
Returns
Section titled “Returns”boolean
join()
Section titled “join()”join(
separator?):string
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:545
Adds all the elements of an array separated by the specified separator string.
Parameters
Section titled “Parameters”separator?
Section titled “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.
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).join
keys()
Section titled “keys()”keys():
ArrayIterator<number>
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:548
Yields each index in the array.
Returns
Section titled “Returns”ArrayIterator<number>
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).keys
lastIndexOf()
Section titled “lastIndexOf()”lastIndexOf(
searchElement,fromIndex?):number
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:556
Returns the index of the last occurrence of a value in an array, or -1 if it is not present.
Parameters
Section titled “Parameters”searchElement
Section titled “searchElement”bigint
The value to locate in the array.
fromIndex?
Section titled “fromIndex?”number
The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).lastIndexOf
map(
callbackfn,thisArg?):BigUint64Array<ArrayBuffer>
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:569
Calls a defined callback function on each element of an array, and returns an array that contains the results.
Parameters
Section titled “Parameters”callbackfn
Section titled “callbackfn”(value, index, array) => bigint
A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
thisArg?
Section titled “thisArg?”any
An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
Returns
Section titled “Returns”BigUint64Array<ArrayBuffer>
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).map
reduce()
Section titled “reduce()”Call Signature
Section titled “Call Signature”reduce(
callbackfn):bigint
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:581
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Parameters
Section titled “Parameters”callbackfn
Section titled “callbackfn”(previousValue, currentValue, currentIndex, array) => bigint
A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
Returns
Section titled “Returns”bigint
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).reduce
Call Signature
Section titled “Call Signature”reduce<
U>(callbackfn,initialValue):U
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:593
Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Type Parameters
Section titled “Type Parameters”U
Parameters
Section titled “Parameters”callbackfn
Section titled “callbackfn”(previousValue, currentValue, currentIndex, array) => U
A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
initialValue
Section titled “initialValue”U
If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
Returns
Section titled “Returns”U
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).reduce
reduceRight()
Section titled “reduceRight()”Call Signature
Section titled “Call Signature”reduceRight(
callbackfn):bigint
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:605
Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Parameters
Section titled “Parameters”callbackfn
Section titled “callbackfn”(previousValue, currentValue, currentIndex, array) => bigint
A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
Returns
Section titled “Returns”bigint
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).reduceRight
Call Signature
Section titled “Call Signature”reduceRight<
U>(callbackfn,initialValue):U
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:617
Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
Type Parameters
Section titled “Type Parameters”U
Parameters
Section titled “Parameters”callbackfn
Section titled “callbackfn”(previousValue, currentValue, currentIndex, array) => U
A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
initialValue
Section titled “initialValue”U
If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
Returns
Section titled “Returns”U
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).reduceRight
reverse()
Section titled “reverse()”reverse():
this
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:620
Reverses the elements in the array.
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).reverse
rotateMetadata()
Section titled “rotateMetadata()”rotateMetadata():
MetadataBlock
Defined in: src/backends/single_buffer.ts:269
Rotate out the current metadata block. Allocates a new metadata block, moves the current one to backup, and updates used_bytes accordingly.
Returns
Section titled “Returns”the new metadata block
set(
array,offset?):void
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:627
Sets a value or an array of values.
Parameters
Section titled “Parameters”ArrayLike<bigint>
A typed or untyped array of values to set.
offset?
Section titled “offset?”number
The index in the current array at which the values are to be written.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).set
slice()
Section titled “slice()”slice(
start?,end?):BigUint64Array<ArrayBuffer>
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:634
Returns a section of an array.
Parameters
Section titled “Parameters”start?
Section titled “start?”number
The beginning of the specified portion of the array.
number
The end of the specified portion of the array.
Returns
Section titled “Returns”BigUint64Array<ArrayBuffer>
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).slice
some()
Section titled “some()”some(
predicate,thisArg?):boolean
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:644
Determines whether the specified callback function returns true for any element of an array.
Parameters
Section titled “Parameters”predicate
Section titled “predicate”(value, index, array) => boolean
A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns true, or until the end of the array.
thisArg?
Section titled “thisArg?”any
An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).some
sort()
Section titled “sort()”sort(
compareFn?):this
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:650
Sorts the array.
Parameters
Section titled “Parameters”compareFn?
Section titled “compareFn?”(a, b) => number | bigint
The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).sort
subarray()
Section titled “subarray()”subarray(
begin?,end?):BigUint64Array<ArrayBuffer>
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:658
Gets a new BigUint64Array view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.
Parameters
Section titled “Parameters”begin?
Section titled “begin?”number
The index of the beginning of the array.
number
The index of the end of the array.
Returns
Section titled “Returns”BigUint64Array<ArrayBuffer>
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).subarray
toLocaleString()
Section titled “toLocaleString()”toLocaleString(
locales?,options?):string
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:661
Converts the array to a string by using the current locale.
Parameters
Section titled “Parameters”locales?
Section titled “locales?”string | string[]
options?
Section titled “options?”NumberFormatOptions
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).toLocaleString
toReversed()
Section titled “toReversed()”toReversed():
BigUint64Array<ArrayBuffer>
Defined in: ../../node_modules/typescript/lib/lib.es2023.array.d.ts:900
Copies the array and returns the copy with the elements in reverse order.
Returns
Section titled “Returns”BigUint64Array<ArrayBuffer>
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).toReversed
toSorted()
Section titled “toSorted()”toSorted(
compareFn?):BigUint64Array<ArrayBuffer>
Defined in: ../../node_modules/typescript/lib/lib.es2023.array.d.ts:912
Copies and sorts the array.
Parameters
Section titled “Parameters”compareFn?
Section titled “compareFn?”(a, b) => number
Function used to determine the order of the elements. It is expected to return a negative value if the first argument is less than the second argument, zero if they’re equal, and a positive value otherwise. If omitted, the elements are sorted in ascending order.
const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]Returns
Section titled “Returns”BigUint64Array<ArrayBuffer>
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).toSorted
toString()
Section titled “toString()”toString():
string
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:664
Returns a string representation of the array.
Returns
Section titled “Returns”string
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).toString
valueOf()
Section titled “valueOf()”valueOf():
BigUint64Array<ArrayBuffer>
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:667
Returns the primitive value of the specified object.
Returns
Section titled “Returns”BigUint64Array<ArrayBuffer>
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).valueOf
values()
Section titled “values()”values():
ArrayIterator<bigint>
Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:670
Yields each value in the array.
Returns
Section titled “Returns”ArrayIterator<bigint>
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).values
with()
Section titled “with()”with(
index,value):BigUint64Array<ArrayBuffer>
Defined in: ../../node_modules/typescript/lib/lib.es2023.array.d.ts:921
Copies the array and inserts the given bigint at the provided index.
Parameters
Section titled “Parameters”number
The index of the value to overwrite. If the index is negative, then it replaces from the end of the array.
bigint
The value to insert into the copied array.
Returns
Section titled “Returns”BigUint64Array<ArrayBuffer>
A copy of the original array with the inserted value.
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).with
staticget(this,buffer,offset):ArrayBufferView
Defined in: node_modules/memium/dist/types.d.ts:17
Get a value from a buffer
Parameters
Section titled “Parameters”void
buffer
Section titled “buffer”ArrayBufferLike
offset
Section titled “offset”number
Returns
Section titled “Returns”ArrayBufferView
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).get
staticset(this,buffer,offset,value):void
Defined in: node_modules/memium/dist/types.d.ts:19
Set a value in a buffer
Parameters
Section titled “Parameters”void
buffer
Section titled “buffer”ArrayBufferLike
offset
Section titled “offset”number
ArrayBufferView
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”$from.typed(BigUint64Array).set