parse static method
Implementation
static SenderReport parse(Uint8List data, int offset, int rc) {
final bd = ByteData.sublistView(data);
final reports = <ReportBlock>[];
for (var i = 0; i < rc; i++) {
reports.add(ReportBlock.parse(bd, offset + 28 + i * 24));
}
return SenderReport(
ssrc: bd.getUint32(offset + 4),
ntpSeconds: bd.getUint32(offset + 8),
ntpFraction: bd.getUint32(offset + 12),
rtpTimestamp: bd.getUint32(offset + 16),
packetCount: bd.getUint32(offset + 20),
octetCount: bd.getUint32(offset + 24),
reports: reports,
);
}