本文整理汇总了C#中Microsoft.Protocols.TestTools.StackSdk.PduMarshaler.WriteUInt64方法的典型用法代码示例。如果您正苦于以下问题:C# PduMarshaler.WriteUInt64方法的具体用法?C# PduMarshaler.WriteUInt64怎么用?C# PduMarshaler.WriteUInt64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.Protocols.TestTools.StackSdk.PduMarshaler
的用法示例。
在下文中一共展示了PduMarshaler.WriteUInt64方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Encode
/// <summary>
/// Encode this PDU to the PduMarshaler.
/// </summary>
/// <param name="marshaler">This is used to encode the fields of this PDU.</param>
public override void Encode(PduMarshaler marshaler)
{
marshaler.WriteUInt32(this.Header.cbSize);
marshaler.WriteUInt32((uint)this.Header.PacketType);
marshaler.WriteByte(this.PresentatioinId);
marshaler.WriteByte((byte)this.Version);
marshaler.WriteByte((byte)this.Flags);
marshaler.WriteByte(this.Reserved);
marshaler.WriteUInt64(this.HnsTimestamp);
marshaler.WriteUInt64(this.HnsDuration);
marshaler.WriteUInt16(this.CurrentPacketIndex);
marshaler.WriteUInt16(this.PacketsInSample);
marshaler.WriteUInt32(this.SampleNumber);
marshaler.WriteUInt32(this.cbSample);
if (this.pSample != null)
{
marshaler.WriteBytes(this.pSample);
}
marshaler.WriteByte(this.Reserved2);
}
示例2: Encode
/// <summary>
/// Encode this PDU to the PduMarshaler.
/// </summary>
/// <param name="marshaler">This is used to encode the fields of this PDU.</param>
public override void Encode(PduMarshaler marshaler)
{
base.Encode(marshaler);
marshaler.WriteUInt16(this.cacheEntriesCount);
for (ushort i = 0; i < cacheEntriesCount; i++)
{
marshaler.WriteUInt64(cacheEntries[i].cacheKey);
marshaler.WriteUInt64(cacheEntries[i].bitmapLength);
}
}
示例3: Encode
/// <summary>
/// Encode this PDU to the PduMarshaler.
/// </summary>
/// <param name="marshaler">This is used to encode the fields of this PDU.</param>
public override void Encode(PduMarshaler marshaler)
{
marshaler.WriteUInt32(this.cbGeometryData);
marshaler.WriteUInt32((uint)this.Version);
marshaler.WriteUInt64(this.MappingId);
marshaler.WriteUInt32((uint)this.UpdateType);
marshaler.WriteUInt32(this.Flags);
marshaler.WriteUInt64(this.TopLevelId);
marshaler.WriteUInt32(this.Left);
marshaler.WriteUInt32(this.Top);
marshaler.WriteUInt32(this.Right);
marshaler.WriteUInt32(this.Bottom);
marshaler.WriteUInt32(this.TopLevelLeft);
marshaler.WriteUInt32(this.TopLevelTop);
marshaler.WriteUInt32(this.TopLevelRight);
marshaler.WriteUInt32(this.TopLevelBottom);
marshaler.WriteUInt32((uint)this.GeometryType);
marshaler.WriteUInt32(this.cbGeometryBuffer);
//Encode RGNDATA
if (this.cbGeometryBuffer != 0)
{
marshaler.WriteUInt32(this.pGeometryBuffer.rdh.dwSize);
marshaler.WriteUInt32(this.pGeometryBuffer.rdh.iType);
marshaler.WriteUInt32(this.pGeometryBuffer.rdh.nCount);
marshaler.WriteUInt32(this.pGeometryBuffer.rdh.nRgnSize);
EncodeRect(this.pGeometryBuffer.rdh.rcBound, marshaler);
if (this.pGeometryBuffer.Buffer != null)
{
foreach (RECT rct in this.pGeometryBuffer.Buffer)
{
EncodeRect(rct, marshaler);
}
}
}
marshaler.WriteByte(this.Reserved2);
}