AddressedMemoryImage<DataType extends Object> class

Backing-independent logical image of addressed memory contents.

Constructors

AddressedMemoryImage({required int depth, required int dataWidth, required Map<int, DataType> entries})
Creates an addressed-memory image.
AddressedMemoryImage.fromJson(Map<String, Object?> json, DataType decodeData(Object? encoded))
Decodes an addressed-memory image.
factory

Properties

dataWidth → int
Width of each logical data word.
final
depth → int
Number of addressable words.
final
entries → Map<int, DataType>
Valid logical words indexed by address.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
validAddresses → Iterable<int>
Addresses containing valid logical words, in ascending order.
no setter
validEntryCount → int
Number of valid logical words.
no setter

Methods

chunks({required int maxEntries}) → List<AddressedMemoryImageChunk<DataType>>
Splits this image into bounded chunks in ascending address order.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(Object? encodeData(DataType value)) → Map<String, Object?>
Encodes this image without exposing physical storage layout.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromChunks<DataType extends Object>(Iterable<AddressedMemoryImageChunk<DataType>> chunks) → AddressedMemoryImage<DataType>
Reassembles a complete image from validated chunks.

Constants

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