Skip to content

SuperBlock

Defined in: src/backends/single_buffer.ts:173

The super block structure for a single-buffer file system

  • BigUint64Array<ArrayBuffer, this>

[index: number]: bigint

new SuperBlock(…args): SuperBlock

Defined in: src/backends/single_buffer.ts:178

…[ArrayBufferLike, number, number]

SuperBlock

$from.typed(BigUint64Array)<ArrayBufferLike>.constructor

readonly [toStringTag]: "BigUint64Array"

Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:674

$from.typed(BigUint64Array).[toStringTag]


readonly buffer: ArrayBuffer

Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:443

The ArrayBuffer instance referenced by the array.

$from.typed(BigUint64Array).buffer


readonly byteLength: number

Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:446

The length in bytes of the array.

$from.typed(BigUint64Array).byteLength


readonly byteOffset: number

Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:449

The offset in bytes of the array.

$from.typed(BigUint64Array).byteOffset


readonly BYTES_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.

$from.typed(BigUint64Array).BYTES_PER_ELEMENT


readonly constructor: typeof SuperBlock

Defined in: src/backends/single_buffer.ts:176

The initial value of Object.prototype.constructor is the standard built-in Object constructor.


readonly length: number

Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:559

The length of the array.

$from.typed(BigUint64Array).length


metadata: MetadataBlock

Defined in: src/backends/single_buffer.ts:255


readonly static alignment: number

Defined in: node_modules/memium/dist/structs.shared.d.ts:11

$from.typed(BigUint64Array).alignment


readonly static optional array?: TypeArrayConstructor<ArrayBufferView<ArrayBufferLike>>

Defined in: node_modules/memium/dist/types.d.ts:14

$from.typed(BigUint64Array).array


readonly static optional BYTES_PER_ELEMENT?: number

Defined in: node_modules/memium/dist/decorators.d.ts:65

$from.typed(BigUint64Array).BYTES_PER_ELEMENT


readonly static optional isDynamic?: boolean

Defined in: node_modules/memium/dist/structs.shared.d.ts:13

$from.typed(BigUint64Array).isDynamic


readonly static isUnion: boolean

Defined in: node_modules/memium/dist/structs.shared.d.ts:12

$from.typed(BigUint64Array).isUnion


static name: 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.

$from.typed(BigUint64Array).name


readonly static size: number

Defined in: node_modules/memium/dist/types.d.ts:13

$from.typed(BigUint64Array).size

Defined in: src/backends/single_buffer.ts:261

Padded to 256 bytes


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


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.


Defined in: src/backends/single_buffer.ts:248

The size in bytes of a metadata block. Not currently configurable.


Defined in: src/backends/single_buffer.ts:253

Offset of the current metadata block


Defined in: src/backends/single_buffer.ts:251

Reserved for 64-bit offset expansion


Defined in: src/backends/single_buffer.ts:239

The total size of the entire file system, including the super block and metadata


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


Defined in: src/backends/single_buffer.ts:227

The version of the on-disk format

[iterator](): ArrayIterator<bigint>

Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:672

ArrayIterator<bigint>

$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.

number

The zero-based index of the desired code unit. A negative index will count back from the last item.

bigint | undefined

$from.typed(BigUint64Array).at


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

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.

this

$from.typed(BigUint64Array).copyWithin


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.

ArrayIterator<[number, bigint]>

$from.typed(BigUint64Array).entries


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.

(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.

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.

boolean

$from.typed(BigUint64Array).every


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

bigint

value to fill array section with

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.

this

$from.typed(BigUint64Array).fill


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.

(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.

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.

BigUint64Array<ArrayBuffer>

$from.typed(BigUint64Array).filter


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.

(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.

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.

bigint | undefined

$from.typed(BigUint64Array).find


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.

(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.

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.

number

$from.typed(BigUint64Array).findIndex


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.

S extends bigint

(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.

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.

S | undefined

$from.typed(BigUint64Array).findLast

findLast(predicate, thisArg?): bigint | undefined

Defined in: ../../node_modules/typescript/lib/lib.es2023.array.d.ts:870

(value, index, array) => unknown

any

bigint | undefined

$from.typed(BigUint64Array).findLast


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.

(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.

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.

number

$from.typed(BigUint64Array).findLastIndex


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.

(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.

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.

void

$from.typed(BigUint64Array).forEach


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.

bigint

The element to search for.

number

The position in this array at which to begin searching for searchElement.

boolean

$from.typed(BigUint64Array).includes


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.

bigint

The value to locate in the array.

number

The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

number

$from.typed(BigUint64Array).indexOf


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!

number

number

boolean


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.

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

$from.typed(BigUint64Array).join


keys(): ArrayIterator<number>

Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:548

Yields each index in the array.

ArrayIterator<number>

$from.typed(BigUint64Array).keys


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.

bigint

The value to locate in the array.

number

The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

number

$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.

(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.

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.

BigUint64Array<ArrayBuffer>

$from.typed(BigUint64Array).map


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.

(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.

bigint

$from.typed(BigUint64Array).reduce

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.

U

(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.

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.

U

$from.typed(BigUint64Array).reduce


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.

(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.

bigint

$from.typed(BigUint64Array).reduceRight

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.

U

(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.

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.

U

$from.typed(BigUint64Array).reduceRight


reverse(): this

Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:620

Reverses the elements in the array.

this

$from.typed(BigUint64Array).reverse


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.

MetadataBlock

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.

ArrayLike<bigint>

A typed or untyped array of values to set.

number

The index in the current array at which the values are to be written.

void

$from.typed(BigUint64Array).set


slice(start?, end?): BigUint64Array<ArrayBuffer>

Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:634

Returns a section of an array.

number

The beginning of the specified portion of the array.

number

The end of the specified portion of the array.

BigUint64Array<ArrayBuffer>

$from.typed(BigUint64Array).slice


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.

(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.

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.

boolean

$from.typed(BigUint64Array).some


sort(compareFn?): this

Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:650

Sorts the array.

(a, b) => number | bigint

The function used to determine the order of the elements. If omitted, the elements are sorted in ascending order.

this

$from.typed(BigUint64Array).sort


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.

number

The index of the beginning of the array.

number

The index of the end of the array.

BigUint64Array<ArrayBuffer>

$from.typed(BigUint64Array).subarray


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.

string | string[]

NumberFormatOptions

string

$from.typed(BigUint64Array).toLocaleString


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.

BigUint64Array<ArrayBuffer>

$from.typed(BigUint64Array).toReversed


toSorted(compareFn?): BigUint64Array<ArrayBuffer>

Defined in: ../../node_modules/typescript/lib/lib.es2023.array.d.ts:912

Copies and sorts the array.

(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]

BigUint64Array<ArrayBuffer>

$from.typed(BigUint64Array).toSorted


toString(): string

Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:664

Returns a string representation of the array.

string

$from.typed(BigUint64Array).toString


valueOf(): BigUint64Array<ArrayBuffer>

Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:667

Returns the primitive value of the specified object.

BigUint64Array<ArrayBuffer>

$from.typed(BigUint64Array).valueOf


values(): ArrayIterator<bigint>

Defined in: ../../node_modules/typescript/lib/lib.es2020.bigint.d.ts:670

Yields each value in the array.

ArrayIterator<bigint>

$from.typed(BigUint64Array).values


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.

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.

BigUint64Array<ArrayBuffer>

A copy of the original array with the inserted value.

$from.typed(BigUint64Array).with


static get(this, buffer, offset): ArrayBufferView

Defined in: node_modules/memium/dist/types.d.ts:17

Get a value from a buffer

void

ArrayBufferLike

number

ArrayBufferView

$from.typed(BigUint64Array).get


static set(this, buffer, offset, value): void

Defined in: node_modules/memium/dist/types.d.ts:19

Set a value in a buffer

void

ArrayBufferLike

number

ArrayBufferView

void

$from.typed(BigUint64Array).set