dco_decode_ldd_usb_port_info method
Implementation
@protected
LddUsbPortInfo dco_decode_ldd_usb_port_info(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 5)
throw Exception('unexpected arr length: expect 5 but see ${arr.length}');
return LddUsbPortInfo(
vid: dco_decode_u_16(arr[0]),
pid: dco_decode_u_16(arr[1]),
serialNumber: dco_decode_opt_String(arr[2]),
manufacturer: dco_decode_opt_String(arr[3]),
product: dco_decode_opt_String(arr[4]),
);
}