SingleBufferStore
Defined in: src/backends/single_buffer.ts:365
Extends
Section titled “Extends”BufferView
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SingleBufferStore(…
args):SingleBufferStore
Defined in: src/backends/single_buffer.ts:383
Parameters
Section titled “Parameters”…[number | ArrayBufferLike | ArrayBufferView<ArrayBufferLike> | ArrayLike<number>, number, number]
Returns
Section titled “Returns”SingleBufferStore
Overrides
Section titled “Overrides”BufferView.constructor
Properties
Section titled “Properties”Defined in: src/backends/single_buffer.ts:484
protectedreadonly_u8:Uint8Array
Defined in: src/backends/single_buffer.ts:381
[toStringTag]
Section titled “[toStringTag]”
readonly[toStringTag]:string
Defined in: ../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:274
Inherited from
Section titled “Inherited from”BufferView.[toStringTag]
buffer
Section titled “buffer”
readonlybuffer:ArrayBufferLike
Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1745
Inherited from
Section titled “Inherited from”BufferView.buffer
byteLength
Section titled “byteLength”
readonlybyteLength:number
Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1746
Inherited from
Section titled “Inherited from”BufferView.byteLength
byteOffset
Section titled “byteOffset”
readonlybyteOffset:number
Defined in: ../../node_modules/typescript/lib/lib.es5.d.ts:1747
Inherited from
Section titled “Inherited from”BufferView.byteOffset
readonlyflags: readonly []
Defined in: src/backends/single_buffer.ts:366
Use for optimizations
Implementation of
Section titled “Implementation of”
readonlyname:"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
Implementation of
Section titled “Implementation of”superblock
Section titled “superblock”
protectedsuperblock:SuperBlock
Defined in: src/backends/single_buffer.ts:374
readonlytype:1935828595=0x73626673
Defined in: src/backends/single_buffer.ts:368
FileSystem#id
Implementation of
Section titled “Implementation of”Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get uuid():
`${string}-${string}-${string}-${string}-${string}`
Defined in: src/backends/single_buffer.ts:370
A UUID for this instance of the store.
Returns
Section titled “Returns”`${string}-${string}-${string}-${string}-${string}`
A UUID for this instance of the store.
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”delete()
Section titled “delete()”delete(
id):void
Defined in: src/backends/single_buffer.ts:470
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”get(
id):Uint8Array<ArrayBufferLike> |undefined
Defined in: src/backends/single_buffer.ts:406
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Uint8Array<ArrayBufferLike> | undefined
Implementation of
Section titled “Implementation of”getBigInt64()
Section titled “getBigInt64()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be retrieved.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be read.
Returns
Section titled “Returns”bigint
Inherited from
Section titled “Inherited from”BufferView.getBigInt64
getBigUint64()
Section titled “getBigUint64()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be retrieved.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be read.
Returns
Section titled “Returns”bigint
Inherited from
Section titled “Inherited from”BufferView.getBigUint64
getFloat16()
Section titled “getFloat16()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be retrieved.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be read.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”BufferView.getFloat16
getFloat32()
Section titled “getFloat32()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be retrieved.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be read.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”BufferView.getFloat32
getFloat64()
Section titled “getFloat64()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be retrieved.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be read.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”BufferView.getFloat64
getInt16()
Section titled “getInt16()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be retrieved.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be read.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”BufferView.getInt16
getInt32()
Section titled “getInt32()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be retrieved.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be read.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”BufferView.getInt32
getInt8()
Section titled “getInt8()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be retrieved.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”BufferView.getInt8
getUint16()
Section titled “getUint16()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be retrieved.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be read.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”BufferView.getUint16
getUint32()
Section titled “getUint32()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be retrieved.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be read.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”BufferView.getUint32
getUint8()
Section titled “getUint8()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be retrieved.
Returns
Section titled “Returns”number
Inherited from
Section titled “Inherited from”BufferView.getUint8
keys()
Section titled “keys()”keys():
Iterable<number>
Defined in: src/backends/single_buffer.ts:394
Returns
Section titled “Returns”Iterable<number>
Implementation of
Section titled “Implementation of”set(
id,data):void
Defined in: src/backends/single_buffer.ts:417
Parameters
Section titled “Parameters”number
Uint8Array
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”setBigInt64()
Section titled “setBigInt64()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be set.
bigint
The value to set.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be written.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BufferView.setBigInt64
setBigUint64()
Section titled “setBigUint64()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be set.
bigint
The value to set.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be written.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BufferView.setBigUint64
setFloat16()
Section titled “setFloat16()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be set.
number
The value to set.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be written.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BufferView.setFloat16
setFloat32()
Section titled “setFloat32()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be set.
number
The value to set.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be written.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BufferView.setFloat32
setFloat64()
Section titled “setFloat64()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be set.
number
The value to set.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be written.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BufferView.setFloat64
setInt16()
Section titled “setInt16()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be set.
number
The value to set.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be written.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BufferView.setInt16
setInt32()
Section titled “setInt32()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be set.
number
The value to set.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be written.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BufferView.setInt32
setInt8()
Section titled “setInt8()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be set.
number
The value to set.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BufferView.setInt8
setUint16()
Section titled “setUint16()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be set.
number
The value to set.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be written.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BufferView.setUint16
setUint32()
Section titled “setUint32()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be set.
number
The value to set.
littleEndian?
Section titled “littleEndian?”boolean
If false or undefined, a big-endian value should be written.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BufferView.setUint32
setUint8()
Section titled “setUint8()”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.
Parameters
Section titled “Parameters”byteOffset
Section titled “byteOffset”number
The place in the buffer at which the value should be set.
number
The value to set.
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”BufferView.setUint8
sync()
Section titled “sync()”sync():
Promise<void>
Defined in: src/backends/single_buffer.ts:495
Syncs the store
Returns
Section titled “Returns”Promise<void>
Implementation of
Section titled “Implementation of”transaction()
Section titled “transaction()”transaction():
SyncMapTransaction
Defined in: src/backends/single_buffer.ts:506
Begins a new transaction.
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”usage()
Section titled “usage()”usage():
UsageInfo
Defined in: src/backends/single_buffer.ts:499
Usage information for the store