public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._parameterTypeDesignator = dis.ReadUnsignedByte();
             this._changeIndicator = dis.ReadUnsignedByte();
             this._partAttachedTo = dis.ReadUnsignedShort();
             this._parameterType = dis.ReadInt();
             this._parameterValue = dis.ReadDouble();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
Esempio n. 2
0
        public virtual void Unmarshal(DataInputStream dis)
        {
            if (dis != null)
            {
                try
                {
                    this._numberOfPdus = dis.ReadInt();
                    for (int idx = 0; idx < this.NumberOfPdus; idx++)
                    {
                        Pdu anX = new Pdu();
                        anX.Unmarshal(dis);
                        this._pdus.Add(anX);
                    };

                }
                catch (Exception e)
                {
            #if DEBUG
                    Trace.WriteLine(e);
                    Trace.Flush();
            #endif
                    this.OnException(e);
                }
            }
        }
Esempio n. 3
0
 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._hour = dis.ReadInt();
             this._timePastHour = dis.ReadUnsignedInt();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }