示例#1
0
        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);
            }
        }
示例#2
0
        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);
            }
        }
示例#3
0
		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);
			}
		}
示例#4
0
		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);
			}
		}