TomMemoryRemote class

The shared container store, head-guarded as TomStorage.commit requires.

Files are held as bytes, not text, which is the same primitive a TomBundleMedium carries and for the same reason: a container may be an encrypted binary blob and a bundle may hold binary assets, so a store that decoded on the way in would corrupt them before a test could open them. textSnapshot decodes on the way out for the callers asserting against a member they already know is YAML.

Constructors

TomMemoryRemote()

Properties

changesets → List<TomChangeset>
The changeset each of those commits carried, index-aligned with commits.
final
commits → List<String>
Every commit that landed, in order — the "one atomic commit per save" trail a repository history shows.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(String locator, TomChangeset changeset, String? message) → String
delete(String locator) → void
Forgets locator entirely — its files and its revision.
exists(String locator) → bool
headOf(String locator) → String?
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
snapshot(String locator) → Map<String, Uint8List>
textSnapshot(String locator) → Map<String, String>
The same snapshot with every member decoded as UTF-8 — valid for a plaintext bundle, and meaningless for an encrypted container.
toString() → String
A string representation of this object.
inherited

Operators

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