本文整理汇总了C#中BufferChunk.NextUInt32方法的典型用法代码示例。如果您正苦于以下问题:C# BufferChunk.NextUInt32方法的具体用法?C# BufferChunk.NextUInt32怎么用?C# BufferChunk.NextUInt32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BufferChunk
的用法示例。
在下文中一共展示了BufferChunk.NextUInt32方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadDataFromBuffer
public void ReadDataFromBuffer(BufferChunk buffer)
{
Time = buffer.NextUInt64();
TimeStamp = buffer.NextUInt32();
PacketCount = buffer.NextUInt32();
BytesSent = buffer.NextUInt32();
}
示例2: ReadDataFromBuffer
public override void ReadDataFromBuffer(BufferChunk buffer)
{
// Make sure ItemCount and Data length agree
if(Header.Length * 4 != Rtp.SSRC_SIZE + SenderReport.SIZE +
ReceiverReport.SIZE * Header.ItemCount)
{
Debug.Assert(false, "Header length and item count disagree!");
throw new RtcpPacketException("Header length and item count disagree!");
}
// Read ssrc
SSRC = buffer.NextUInt32();
// Parse SenderReport
sr.ReadDataFromBuffer(buffer);
// Process Reports
if(Header.ItemCount > 0)
{
receiverReports = new ArrayList();
for(int rrCount = 0; rrCount < Header.ItemCount; rrCount++)
{
ReceiverReport rr = new ReceiverReport();
rr.ReadDataFromBuffer(buffer);
receiverReports.Add(rr);
}
}
}
示例3: ReadReportFromBuffer
private void ReadReportFromBuffer(BufferChunk buffer)
{
uint ssrc = buffer.NextUInt32();
SdesData props = new SdesData(buffer);
AddReport(new SdesReport(ssrc, props));
}