public override void Decode(PduMarshaler marshaler) { try { this.osType = (osType_Values)marshaler.ReadUInt32(); this.osVersion = (osVersion_Values)marshaler.ReadUInt32(); this.protocolMajorVersion = (protocolMajorVersion_Values)marshaler.ReadUInt16(); this.protocolMinorVersion = (DR_CORE_SERVER_CLIENTID_CONFIRM_VersionMinor_Values)marshaler.ReadUInt16(); this.ioCode1 = (ioCode1_Values)marshaler.ReadUInt32(); this.ioCode2 = (ioCode2_Values)marshaler.ReadUInt32(); this.extendedPDU = (extendedPDU_Values)marshaler.ReadUInt32(); this.extraFlags1 = (extraFlags1_Values)marshaler.ReadUInt32(); this.extraFlags2 = (extraFlags2_Values)marshaler.ReadUInt32(); this.SpecialTypeDeviceCap = marshaler.ReadUInt32(); } catch { marshaler.Reset(); throw new PDUDecodeException(this.GetType(), marshaler.ReadToEnd()); } }
public override bool Decode(PduMarshaler marshaler) { try { base.Decode(marshaler); this.VersionMajor = (DR_CORE_SERVER_CLIENTID_CONFIRM_VersionMajor_Values)marshaler.ReadUInt16(); this.VersionMinor = (DR_CORE_SERVER_CLIENTID_CONFIRM_VersionMinor_Values)marshaler.ReadUInt16(); this.ClientId = marshaler.ReadUInt32(); return true; } catch { marshaler.Reset(); throw new PDUDecodeException(this.GetType(), marshaler.ReadToEnd()); } }