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


C# PduMarshaler.WriteBytes方法代码示例

本文整理汇总了C#中Microsoft.Protocols.TestTools.StackSdk.PduMarshaler.WriteBytes方法的典型用法代码示例。如果您正苦于以下问题:C# PduMarshaler.WriteBytes方法的具体用法?C# PduMarshaler.WriteBytes怎么用?C# PduMarshaler.WriteBytes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Microsoft.Protocols.TestTools.StackSdk.PduMarshaler的用法示例。


在下文中一共展示了PduMarshaler.WriteBytes方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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)
 {
     base.Encode(marshaler);
     marshaler.WriteByte(configurationDescriptorIsValid);
     marshaler.WriteBytes(padding);
     marshaler.WriteUInt32(numInterfaces);
     for (int i = 0; i < intefaces.Length; i++)
     {
         intefaces[i].Encode(marshaler);
     }
     marshaler.WriteBytes(descriptor);
 }
开发者ID:yazeng,项目名称:WindowsProtocolTestSuites,代码行数:16,代码来源:RdpeusbTsUrbTypes.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.WriteUInt32(CbTsUrb);
     marshaler.WriteBytes(TsUrb);
     marshaler.WriteUInt32(OutputBufferSize);
 }
开发者ID:yazeng,项目名称:WindowsProtocolTestSuites,代码行数:11,代码来源:RdpeusbTypes.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)
 {
     if (Data != null)
     {
         marshaler.WriteBytes(Data);
     };
 }
开发者ID:yazeng,项目名称:WindowsProtocolTestSuites,代码行数:11,代码来源:RdpevorTypes.cs

示例4: 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.WriteByte(this.quantIdxY);
            marshaler.WriteByte(this.quantIdxCb);
            marshaler.WriteByte(this.quantIdxCr);
            marshaler.WriteUInt16(this.xIdx);
            marshaler.WriteUInt16(this.yIdx);
            marshaler.WriteBool(this.flags);

            marshaler.WriteUInt16(this.yLen);
            marshaler.WriteUInt16(this.cbLen);
            marshaler.WriteUInt16(this.crLen);
            marshaler.WriteUInt16(this.tailLen);

            if (this.yData != null)
                marshaler.WriteBytes(this.yData);
            if (this.cbData != null)
                marshaler.WriteBytes(this.cbData);
            if (this.crData != null)
                marshaler.WriteBytes(this.crData);
            if (this.tailData != null)
                marshaler.WriteBytes(this.tailData);
        }
开发者ID:yazeng,项目名称:WindowsProtocolTestSuites,代码行数:28,代码来源:RdpegfxRFXProgressiveDataBlock.cs

示例5: Encode

 public override void Encode(PduMarshaler marshaler)
 {
     marshaler.WriteByte((byte)((byte)(Flags << 4) | (byte)Action));
     marshaler.WriteUInt16(this.PayloadLength);
     marshaler.WriteByte(this.HeaderLength);
     if (SubHeaders != null)
     {
         foreach (RDP_TUNNEL_SUBHEADER subHeader in SubHeaders)
         {
             marshaler.WriteBytes(PduMarshaler.Marshal(subHeader));
         }
     }
 }
开发者ID:yazeng,项目名称:WindowsProtocolTestSuites,代码行数:13,代码来源:Types.cs

示例6: 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.WriteByte((byte)descriptor);
     if (descriptor == DescriptorTypes.SINGLE)
     {
         if(bulkData != null)
         {
             marshaler.WriteByte(bulkData.header);
             marshaler.WriteBytes(bulkData.data);
         }
     }
     else
     {
         marshaler.WriteUInt16(segmentCount);
         marshaler.WriteUInt32(uncompressedSize);
         if (segmentArray != null && segmentArray.Length > 0)
         {
             foreach (RDP_DATA_SEGMENT dataSeg in segmentArray)
             {
                 marshaler.WriteUInt32(dataSeg.size);
                 if (dataSeg.bulkData != null)
                 {
                     marshaler.WriteByte(bulkData.header);
                     marshaler.WriteBytes(bulkData.data);
                 }
             }
         }
     }
 }
开发者ID:yazeng,项目名称:WindowsProtocolTestSuites,代码行数:33,代码来源:RdpegfxTypes.cs

示例7: Encode

 public override void Encode(PduMarshaler marshaler)
 {
     marshaler.WriteUInt16(eventId);
     marshaler.WriteUInt32(pduLength);
     if (data != null)
     {
         marshaler.WriteBytes(data);
     }
 }
开发者ID:yazeng,项目名称:WindowsProtocolTestSuites,代码行数:9,代码来源:RdpeiTestSuite.cs

示例8: 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.WriteUInt32(this.width);
     marshaler.WriteUInt32(this.height);
     marshaler.WriteUInt32(this.monitorCount);
     foreach (TS_MONITOR_DEF monitorDef in monitorDefArray)
     {
         marshaler.WriteUInt32(monitorDef.left);
         marshaler.WriteUInt32(monitorDef.top);
         marshaler.WriteUInt32(monitorDef.right);
         marshaler.WriteUInt32(monitorDef.bottom);
         marshaler.WriteUInt32((uint)monitorDef.flags);
     }
     if (pad != null)
     {
         marshaler.WriteBytes(pad);
     }
 }
开发者ID:Microsoft,项目名称:WindowsProtocolTestSuites,代码行数:23,代码来源:RdpegfxTypes.cs


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