ProtectionCodec<Logical extends Logic, Protected extends Logic> class

A reusable encode/decode capability for protected datapaths.

The descriptor carries no storage or protocol behavior. Existing metadata adapters, registers, pipelines, queues, and memory implementations can place the protected representation between encode and decode.

Constructors

ProtectionCodec({required String identity, required int logicalWidth, required int protectedWidth, required ProtectionEncoder<Logical, Protected> encode, required ProtectionDecoder<Logical, Protected> decode, ProtectionStatusDecoder<Protected>? decodeStatus})
Creates a reusable protection capability.

Properties

decode → ProtectionDecoder<Logical, Protected>
Decodes a protected payload.
final
decodeStatus → ProtectionStatusDecoder<Protected>?
Optional typed status decoder for the protected payload.
final
encode → ProtectionEncoder<Logical, Protected>
Encodes a logical payload.
final
hashCode → int
The hash code for this object.
no setterinherited
identity → String
Stable identity for generated definition names and diagnostics.
final
logicalWidth → int
Width of the logical payload.
final
protectedWidth → int
Width of the protected transport payload.
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
toString() → String
A string representation of this object.
inherited

Operators

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