Пример #1
0
 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._currentShaftRPMs = dis.ReadShort();
             this._orderedShaftRPMs = dis.ReadShort();
             this._shaftRPMRateOfChange = dis.ReadFloat();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
Пример #2
0
 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._protocolVersion = dis.ReadUnsignedByte();
             this._exerciseID = dis.ReadUnsignedByte();
             this._pduType = dis.ReadUnsignedByte();
             this._protocolFamily = dis.ReadUnsignedByte();
             this._timestamp = dis.ReadUnsignedInt();
             this._length = dis.ReadUnsignedShort();
             this._padding = dis.ReadShort();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
Пример #3
0
 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._parameterIndex = dis.ReadUnsignedShort();
             this._parameterValue = dis.ReadShort();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }
 public virtual void Unmarshal(DataInputStream dis)
 {
     if (dis != null)
     {
         try
         {
             this._beamDirection.Unmarshal(dis);
             this._azimuthBeamwidth = dis.ReadFloat();
             this._referenceSystem = dis.ReadFloat();
             this._padding1 = dis.ReadShort();
             this._padding2 = dis.ReadByte();
             this._ez = dis.ReadFloat();
             this._ex = dis.ReadFloat();
             this._phase = dis.ReadFloat();
         }
         catch (Exception e)
         {
     #if DEBUG
             Trace.WriteLine(e);
             Trace.Flush();
     #endif
             this.OnException(e);
         }
     }
 }