dco_decode_latency_stats method
LatencyStats
dco_decode_latency_stats(
- dynamic raw
)
override
Implementation
@protected
LatencyStats dco_decode_latency_stats(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 7)
throw Exception('unexpected arr length: expect 7 but see ${arr.length}');
return LatencyStats(
latencyMs: dco_decode_u_64(arr[0]),
jitterMs: dco_decode_u_64(arr[1]),
packetLossPercent: dco_decode_f_32(arr[2]),
minLatencyMs: dco_decode_opt_box_autoadd_u_64(arr[3]),
avgLatencyMs: dco_decode_opt_box_autoadd_u_64(arr[4]),
maxLatencyMs: dco_decode_opt_box_autoadd_u_64(arr[5]),
stabilityScore: dco_decode_u_8(arr[6]),
);
}