InProcessBackend class

Default in-process backend: wraps ShmBlobArena for the single-address-space case (the FFI host ↔ a binding loaded in the same isolate).

Descriptors carry BlobBackendKind.inProcess.

Implemented types

Constructors

InProcessBackend()
Create an in-process backend backed by a fresh arena at epoch 0.
InProcessBackend.fromArena(ShmBlobArena arena)
Wrap an existing arena.

Properties

arena ShmBlobArena
The backing arena (for inspection / composition).
no setterinherited
epoch int
The backend's current validity epoch.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
kind BlobBackendKind
Which backend discriminator this adapter serves.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

advanceEpoch() → void
Advance the validity epoch. Descriptors minted before an epoch advance no longer resolve (models compaction / restart).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readView(ShmBlobRef descriptor) BlobView?
Resolve descriptor zero-copy — return the stored bytes iff generation + epoch + len + checksum all match; null otherwise. No copy, no checksum recompute.
inherited
toString() String
A string representation of this object.
inherited
write(List<int> bytes) ShmBlobRef
Mint a fresh descriptor for bytes: allocate a stable-addressed slot, store the bytes immutably, and return a descriptor whose checksum is the bytes' FNV-1a-64, tagged with this backend's kind.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited