IndexAllocatorOwnershipImage class

Logical ownership state of a bounded index allocator.

The image records which physical indices are owned without exposing whether hardware tracks that state as a bitmap, free list, ring, or memory.

Constructors

IndexAllocatorOwnershipImage({required int capacity, required Iterable<int> allocatedIndices})
Creates an allocator ownership image.
IndexAllocatorOwnershipImage.fromJson(Map<String, Object?> json)
Decodes allocator ownership.
factory

Properties

allocatedCount → int
Number of currently owned indices.
no setter
allocatedIndices → Set<int>
Physical indices currently owned by clients.
final
capacity → int
Number of managed physical indices.
final
freeIndices → Iterable<int>
Physical indices currently available for allocation.
no setter
hashCode → int
The hash code for this object.
no setterinherited
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() → Map<String, Object?>
Encodes ownership independently of allocator implementation.
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

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