dco_decode_record_list_prim_u_64_strict_list_target_report method

  1. @protected
(Uint64List, List<TargetReport>) dco_decode_record_list_prim_u_64_strict_list_target_report(
  1. dynamic raw
)

Implementation

@protected
(Uint64List, List<TargetReport>)
    dco_decode_record_list_prim_u_64_strict_list_target_report(dynamic raw) {
  // Codec=Dco (DartCObject based), see doc to use other codecs
  final arr = raw as List<dynamic>;
  if (arr.length != 2) {
    throw Exception('Expected 2 elements, got ${arr.length}');
  }
  return (
    dco_decode_list_prim_u_64_strict(arr[0]),
    dco_decode_list_target_report(arr[1]),
  );
}