public void Parse(byte[] bytes, ref int startIndex, int length, int reportCount) { Ssrc = bytes.BigendianToUInt32(ref startIndex); ReportBlocks = new ReportBlockPart[reportCount]; for (int i = 0; i < ReportBlocks.Length; i++) { ReportBlocks[i] = new ReportBlockPart(); ReportBlocks[i].Parse(bytes, ref startIndex, length); } }
public void Parse(byte[] bytes, ref int startIndex, int length, int reportCount) { Ssrc = bytes.BigendianToUInt32(ref startIndex); NtpTimestamp = (UInt64)bytes.BigendianToUInt32(ref startIndex) << 32 | bytes.BigendianToUInt32(ref startIndex); RtpTimestamp = bytes.BigendianToUInt32(ref startIndex); PacketCount = bytes.BigendianToUInt32(ref startIndex); OctetCount = bytes.BigendianToUInt32(ref startIndex); ReportBlocks = new ReportBlockPart[reportCount]; for (int i = 0; i < ReportBlocks.Length; i++) { ReportBlocks[i] = new ReportBlockPart(); ReportBlocks[i].Parse(bytes, ref startIndex, length); } }