Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpegfx.RFX_Progressive_SYNC.Decode C# (CSharp) Method

Decode() public method

Decode this PDU from the PduMarshaler.
public Decode ( Microsoft.Protocols.TestTools.StackSdk.PduMarshaler marshaler ) : bool
marshaler Microsoft.Protocols.TestTools.StackSdk.PduMarshaler This is used to decode the fields of this PDU.
return bool
        public override bool Decode(PduMarshaler marshaler)
        {
            try
            {
                if (!base.Decode(marshaler)) return false;

                this.magic = marshaler.ReadUInt32();
                this.version = marshaler.ReadUInt16();

                this.decodedLen += 6;
                return true;
            }
            catch
            {
                marshaler.Reset();
                throw new PDUDecodeException(this.GetType(), marshaler.ReadToEnd());
            }
        }