MaskedLaneResult constructor

MaskedLaneResult({
  1. required int laneCount,
  2. required int laneWidth,
  3. String name = 'masked_lane_result',
})

Creates a packed masked-lane result.

Implementation

MaskedLaneResult({
  required this.laneCount,
  required this.laneWidth,
  String name = 'masked_lane_result',
}) : super([
        Logic(name: 'data', width: laneCount * laneWidth),
        Logic(name: 'laneMask', width: laneCount),
      ], name: name) {
  if (laneCount < 1 || laneWidth < 1) {
    throw ArgumentError('Lane count and width must be positive.');
  }
}