Skip to content

SingleBufferStore

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

  • BufferView

new SingleBufferStore(…args): SingleBufferStore

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

…[number | ArrayBufferLike | ArrayBufferView<ArrayBufferLike> | ArrayLike<number>, number, number]

SingleBufferStore

BufferView.constructor

protected optional _fs?: StoreFS<Store>

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


protected readonly _u8: Uint8Array

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


readonly [toStringTag]: string

Defined in: ../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:274

BufferView.[toStringTag]


readonly buffer: ArrayBufferLike

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1745

BufferView.buffer


readonly byteLength: number

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1746

BufferView.byteLength


readonly byteOffset: number

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1747

BufferView.byteOffset


readonly flags: readonly []

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

Use for optimizations

SyncMapStore.flags


readonly name: "sbfs" = 'sbfs'

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

What the file system using this store should be called. For example, tmpfs for an in memory store

SyncMapStore.name


protected superblock: SuperBlock

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


readonly type: 1935828595 = 0x73626673

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

FileSystem#id

SyncMapStore.type

get uuid(): `${string}-${string}-${string}-${string}-${string}`

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

A UUID for this instance of the store.

`${string}-${string}-${string}-${string}-${string}`

A UUID for this instance of the store.

SyncMapStore.uuid

delete(id): void

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

number

void

SyncMapStore.delete


get(id): Uint8Array<ArrayBufferLike> | undefined

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

number

Uint8Array<ArrayBufferLike> | undefined

SyncMapStore.get


getBigInt64(byteOffset, littleEndian?): bigint

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

Gets the BigInt64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

number

The place in the buffer at which the value should be retrieved.

boolean

If false or undefined, a big-endian value should be read.

bigint

BufferView.getBigInt64


getBigUint64(byteOffset, littleEndian?): bigint

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

Gets the BigUint64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

number

The place in the buffer at which the value should be retrieved.

boolean

If false or undefined, a big-endian value should be read.

bigint

BufferView.getBigUint64


getFloat16(byteOffset, littleEndian?): number

Defined in: ../../node_modules/typescript/lib/lib.es2025.float16.d.ts:434

Gets the Float16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

number

The place in the buffer at which the value should be retrieved.

boolean

If false or undefined, a big-endian value should be read.

number

BufferView.getFloat16


getFloat32(byteOffset, littleEndian?): number

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1754

Gets the Float32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

number

The place in the buffer at which the value should be retrieved.

boolean

If false or undefined, a big-endian value should be read.

number

BufferView.getFloat32


getFloat64(byteOffset, littleEndian?): number

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1762

Gets the Float64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

number

The place in the buffer at which the value should be retrieved.

boolean

If false or undefined, a big-endian value should be read.

number

BufferView.getFloat64


getInt16(byteOffset, littleEndian?): number

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1777

Gets the Int16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

number

The place in the buffer at which the value should be retrieved.

boolean

If false or undefined, a big-endian value should be read.

number

BufferView.getInt16


getInt32(byteOffset, littleEndian?): number

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1784

Gets the Int32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

number

The place in the buffer at which the value should be retrieved.

boolean

If false or undefined, a big-endian value should be read.

number

BufferView.getInt32


getInt8(byteOffset): number

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1769

Gets the Int8 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

number

The place in the buffer at which the value should be retrieved.

number

BufferView.getInt8


getUint16(byteOffset, littleEndian?): number

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1799

Gets the Uint16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

number

The place in the buffer at which the value should be retrieved.

boolean

If false or undefined, a big-endian value should be read.

number

BufferView.getUint16


getUint32(byteOffset, littleEndian?): number

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1807

Gets the Uint32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

number

The place in the buffer at which the value should be retrieved.

boolean

If false or undefined, a big-endian value should be read.

number

BufferView.getUint32


getUint8(byteOffset): number

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1791

Gets the Uint8 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.

number

The place in the buffer at which the value should be retrieved.

number

BufferView.getUint8


keys(): Iterable<number>

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

Iterable<number>

SyncMapStore.keys


set(id, data): void

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

number

Uint8Array

void

SyncMapStore.set


setBigInt64(byteOffset, value, littleEndian?): void

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

Stores a BigInt64 value at the specified byte offset from the start of the view.

number

The place in the buffer at which the value should be set.

bigint

The value to set.

boolean

If false or undefined, a big-endian value should be written.

void

BufferView.setBigInt64


setBigUint64(byteOffset, value, littleEndian?): void

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

Stores a BigUint64 value at the specified byte offset from the start of the view.

number

The place in the buffer at which the value should be set.

bigint

The value to set.

boolean

If false or undefined, a big-endian value should be written.

void

BufferView.setBigUint64


setFloat16(byteOffset, value, littleEndian?): void

Defined in: ../../node_modules/typescript/lib/lib.es2025.float16.d.ts:442

Stores an Float16 value at the specified byte offset from the start of the view.

number

The place in the buffer at which the value should be set.

number

The value to set.

boolean

If false or undefined, a big-endian value should be written.

void

BufferView.setFloat16


setFloat32(byteOffset, value, littleEndian?): void

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1815

Stores an Float32 value at the specified byte offset from the start of the view.

number

The place in the buffer at which the value should be set.

number

The value to set.

boolean

If false or undefined, a big-endian value should be written.

void

BufferView.setFloat32


setFloat64(byteOffset, value, littleEndian?): void

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1823

Stores an Float64 value at the specified byte offset from the start of the view.

number

The place in the buffer at which the value should be set.

number

The value to set.

boolean

If false or undefined, a big-endian value should be written.

void

BufferView.setFloat64


setInt16(byteOffset, value, littleEndian?): void

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1838

Stores an Int16 value at the specified byte offset from the start of the view.

number

The place in the buffer at which the value should be set.

number

The value to set.

boolean

If false or undefined, a big-endian value should be written.

void

BufferView.setInt16


setInt32(byteOffset, value, littleEndian?): void

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1846

Stores an Int32 value at the specified byte offset from the start of the view.

number

The place in the buffer at which the value should be set.

number

The value to set.

boolean

If false or undefined, a big-endian value should be written.

void

BufferView.setInt32


setInt8(byteOffset, value): void

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1830

Stores an Int8 value at the specified byte offset from the start of the view.

number

The place in the buffer at which the value should be set.

number

The value to set.

void

BufferView.setInt8


setUint16(byteOffset, value, littleEndian?): void

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1861

Stores an Uint16 value at the specified byte offset from the start of the view.

number

The place in the buffer at which the value should be set.

number

The value to set.

boolean

If false or undefined, a big-endian value should be written.

void

BufferView.setUint16


setUint32(byteOffset, value, littleEndian?): void

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1869

Stores an Uint32 value at the specified byte offset from the start of the view.

number

The place in the buffer at which the value should be set.

number

The value to set.

boolean

If false or undefined, a big-endian value should be written.

void

BufferView.setUint32


setUint8(byteOffset, value): void

Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1853

Stores an Uint8 value at the specified byte offset from the start of the view.

number

The place in the buffer at which the value should be set.

number

The value to set.

void

BufferView.setUint8


sync(): Promise<void>

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

Syncs the store

Promise<void>

SyncMapStore.sync


transaction(): SyncMapTransaction

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

Begins a new transaction.

SyncMapTransaction

SyncMapStore.transaction


usage(): UsageInfo

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

Usage information for the store

UsageInfo

SyncMapStore.usage