dco_decode_signature_parts method

  1. @protected
SignatureParts dco_decode_signature_parts(
  1. dynamic raw
)

Implementation

@protected
SignatureParts dco_decode_signature_parts(dynamic raw) {
  // Codec=Dco (DartCObject based), see doc to use other codecs
  final arr = raw as List<dynamic>;
  if (arr.length != 2)
    throw Exception('unexpected arr length: expect 2 but see ${arr.length}');
  return SignatureParts(
    low: dco_decode_String(arr[0]),
    high: dco_decode_String(arr[1]),
  );
}