CollectedPacket<LogicType extends Logic> constructor

CollectedPacket<LogicType extends Logic>(
  1. TypedLogicArray<LogicType, LogicValue> data, {
  2. String? name,
})

Creates a packet result around data.

Implementation

CollectedPacket(TypedLogicArray<LogicType, LogicValue> data, {String? name})
    : super([
        data,
        Logic(
            name: 'validElements',
            width: widthFor((data.dimensions.single) + 1)),
        Logic(name: 'framingError'),
      ], name: name ?? '${data.name}_packet');