当前位置: 首页>>代码示例>>C#>>正文


C# PduMarshaler.WriteUInt64方法代码示例

本文整理汇总了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);
 }
开发者ID:yazeng,项目名称:WindowsProtocolTestSuites,代码行数:24,代码来源:RdpevorTypes.cs

示例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);
     }
 }
开发者ID:Microsoft,项目名称:WindowsProtocolTestSuites,代码行数:14,代码来源:RdpegfxTypes.cs

示例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);
        }
开发者ID:yazeng,项目名称:WindowsProtocolTestSuites,代码行数:42,代码来源:RdpegtTypes.cs


注:本文中的Microsoft.Protocols.TestTools.StackSdk.PduMarshaler.WriteUInt64方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。