本文整理汇总了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);
}
示例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);
}
示例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);
};
}
示例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);
}
示例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));
}
}
}
示例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);
}
}
}
}
}
示例7: Encode
public override void Encode(PduMarshaler marshaler)
{
marshaler.WriteUInt16(eventId);
marshaler.WriteUInt32(pduLength);
if (data != null)
{
marshaler.WriteBytes(data);
}
}
示例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);
}
}