TaggedStatePayloadSidecarImage<DataType extends Object> class

A tagged-state image with payload and allocation sidecar regions explicit.

The payload list may contain stale or omitted values for unallocated tags, but every allocated tag must have a payload. This keeps the indexed payload binding separate from the validity sidecar while preserving one logical snapshot boundary.

Constructors

TaggedStatePayloadSidecarImage({required Iterable<DataType?> payloads, required Iterable<int> allocatedTags})
Creates an explicit payload and allocation-sidecar image.

Properties

allocatedCount → int
Number of allocated tags.
no setter
allocatedTags → Set<int>
Tags marked allocated by the validity sidecar.
final
capacity → int
Number of addressable tags.
no setter
hashCode → int
The hash code for this object.
no setterinherited
payloads → List<DataType?>
Payload value at each physical tag.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(StateValueEncoder<DataType> encodeData) → Map<String, Object?>
Encodes payload and sidecar regions independently.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson<DataType extends Object>(Map<String, Object?> json, StateValueDecoder<DataType> decodeData) → TaggedStatePayloadSidecarImage<DataType>
Decodes an explicit payload and allocation-sidecar image.

Constants

kind → const String
Stable schema identifier.
version → const int
Current schema version.