ProtectedMemoryLayout class

Describes how a protection codec is laid out across stored memory lanes.

ProtectedPartialWritePolicy.independentLanes is required for masked writes that must not perform a read-modify-write operation. Each lane is encoded and updated independently.

Constructors

ProtectedMemoryLayout({required ProtectionCodec<Logic, Logic> laneCodec, required int laneCount, required ProtectedPartialWritePolicy partialWritePolicy})
Creates and validates a protected memory layout.

Properties

hashCode → int
The hash code for this object.
no setterinherited
laneCodec → ProtectionCodec<Logic, Logic>
Codec applied independently to each lane.
final
laneCount → int
Number of independently protected lanes in one logical word.
final
logicalWidth → int
Logical width of the complete memory word.
no setter
partialWritePolicy → ProtectedPartialWritePolicy
Partial-write behavior for the layout.
final
protectedWidth → int
Protected width of the complete memory word.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

acceptsMask(Logic mask) → bool
Returns whether mask selects complete codec lanes.
decodeWord(Logic protectedWord) → Logic
Decodes a packed protected word one lane at a time.
decodeWordStatus(Logic protectedWord) → BlockDecodeStatus<Logic>?
Decodes and aggregates per-lane correction status.
encodeWord(Logic logicalWord) → Logic
Encodes a packed logical word one lane at a time.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validateMask(Logic mask) → void
Validates a partial-write request for this layout.

Operators

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