DurableStorageBackend class abstract interface

A capability contract, not a claim about an arbitrary filesystem adapter.

Implementations must persist every successful write/truncate before sync() completes; completed syncs survive a crash and impose write ordering. The backend's directory entry must already be durable, and storage must support overwriting/truncating without replacing that entry. Callers must exclude other writers. Ordinary MemoryStorageBackend and the read-only file adapter intentionally do not implement this contract.

Implemented types
Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
inherited
length() → Future<int>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(int offset, Uint8List buffer) → Future<int>
inherited
sync() → Future<void>
inherited
toString() → String
A string representation of this object.
inherited
truncate(int size) → Future<void>
inherited
write(int offset, Uint8List bytes) → Future<void>
inherited

Operators

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