本文整理汇总了C#中Microsoft.Protocols.TestTools.StackSdk.PduMarshaler.WriteInt32方法的典型用法代码示例。如果您正苦于以下问题:C# PduMarshaler.WriteInt32方法的具体用法?C# PduMarshaler.WriteInt32怎么用?C# PduMarshaler.WriteInt32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Microsoft.Protocols.TestTools.StackSdk.PduMarshaler
的用法示例。
在下文中一共展示了PduMarshaler.WriteInt32方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: EncodeRect
/// <summary>
/// Encode a RECT.
/// </summary>
private void EncodeRect(RECT rct, PduMarshaler marshaler)
{
marshaler.WriteInt32(rct.left);
marshaler.WriteInt32(rct.top);
marshaler.WriteInt32(rct.right);
marshaler.WriteInt32(rct.bottom);
}
示例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 void Encode(PduMarshaler marshaler)
{
marshaler.WriteUInt32((uint)Flags);
marshaler.WriteInt32(Left);
marshaler.WriteInt32(Top);
marshaler.WriteUInt32(Width);
marshaler.WriteUInt32(Height);
marshaler.WriteUInt32(PhysicalWidth);
marshaler.WriteUInt32(PhysicalHeight);
marshaler.WriteUInt32((uint)Orientation);
marshaler.WriteUInt32(DesktopScaleFactor);
marshaler.WriteUInt32(DeviceScaleFactor);
}