public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._damagedEntityID.Unmarshal(dis); this._padding1 = dis.ReadUnsignedShort(); this._padding2 = dis.ReadUnsignedShort(); this._numberOfDamageDescription = dis.ReadUnsignedShort(); for (int idx = 0; idx < this.NumberOfDamageDescription; idx++) { DirectedEnergyDamage anX = new DirectedEnergyDamage(); anX.Unmarshal(dis); this._damageDescriptionRecords.Add(anX); } ; } 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._recordID = dis.ReadUnsignedInt(); this._recordSetSerialNumber = dis.ReadUnsignedInt(); this._recordLength = dis.ReadUnsignedShort(); this._recordCount = dis.ReadUnsignedShort(); this._recordValues = dis.ReadUnsignedShort(); this._pad4 = dis.ReadUnsignedByte(); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public virtual void Unmarshal(DataInputStream dis) { if (dis != null) { try { this._recordType = dis.ReadUnsignedShort(); this._recordLength = dis.ReadUnsignedShort(); this._recordSpecificField = dis.ReadUnsignedInt(); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public virtual void Unmarshal(DataInputStream dis) { if (dis != null) { try { this._systemType = dis.ReadUnsignedShort(); this._systemName = dis.ReadUnsignedShort(); this._systemMode = dis.ReadUnsignedByte(); this._changeOptions = dis.ReadUnsignedByte(); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public virtual void Unmarshal(DataInputStream dis) { if (dis != null) { try { this._recordType = dis.ReadUnsignedInt(); this._recordLength = dis.ReadUnsignedShort(); this._padding = dis.ReadUnsignedShort(); this._targetSpotLocation.Unmarshal(dis); this._targetSpotEntityLocation.Unmarshal(dis); this._targetSpotVelocity.Unmarshal(dis); this._targetSpotAcceleration.Unmarshal(dis); this._targetEntityID.Unmarshal(dis); this._targetComponentID = dis.ReadUnsignedByte(); this._SpotShape = dis.ReadUnsignedByte(); this._BeamSpotXSecSemiMajorAxis = dis.ReadFloat(); this._BeamSpotCrossSectionSemiMinorAxis = dis.ReadFloat(); this._BeamSpotCrossSectionOrientAngle = dis.ReadFloat(); } 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._munition.Unmarshal(dis); this._warhead = dis.ReadUnsignedShort(); this._fuse = dis.ReadUnsignedShort(); this._quantity = dis.ReadUnsignedShort(); this._rate = dis.ReadUnsignedShort(); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public virtual void Unmarshal(DataInputStream dis) { if (dis != null) { try { this._stationName = dis.ReadUnsignedShort(); this._stationNumber = dis.ReadUnsignedShort(); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public virtual void Unmarshal(DataInputStream dis) { if (dis != null) { try { this._recordType = dis.ReadUnsignedInt(); this._recordLength = dis.ReadUnsignedShort(); this._padding = dis.ReadUnsignedShort(); this._damageLocation.Unmarshal(dis); this._damageDiameter = dis.ReadFloat(); this._temperature = dis.ReadFloat(); this._componentIdentification = dis.ReadUnsignedByte(); this._componentDamageStatus = dis.ReadUnsignedByte(); this._componentVisualDamageStatus = dis.ReadUnsignedByte(); this._componentVisualSmokeColor = dis.ReadUnsignedByte(); this._fireEventID.Unmarshal(dis); this._padding2 = dis.ReadUnsignedShort(); } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._designatingEntityID.Unmarshal(dis); this._codeName = dis.ReadUnsignedShort(); this._designatedEntityID.Unmarshal(dis); this._designatorCode = dis.ReadUnsignedShort(); this._designatorPower = dis.ReadFloat(); this._designatorWavelength = dis.ReadFloat(); this._designatorSpotWrtDesignated.Unmarshal(dis); this._designatorSpotLocation.Unmarshal(dis); this._deadReckoningAlgorithm = dis.ReadByte(); this._padding1 = dis.ReadUnsignedShort(); this._padding2 = dis.ReadByte(); this._entityLinearAcceleration.Unmarshal(dis); } 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._segmentNumber = dis.ReadUnsignedByte(); this._segmentAppearance.Unmarshal(dis); this._location.Unmarshal(dis); this._orientation.Unmarshal(dis); this._segmentLength = dis.ReadUnsignedShort(); this._segmentWidth = dis.ReadUnsignedShort(); this._segmentHeight = dis.ReadUnsignedShort(); this._segmentDepth = dis.ReadUnsignedShort(); this._pad1 = dis.ReadUnsignedInt(); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public virtual void Unmarshal(DataInputStream dis) { if (dis != null) { try { this._recordType = dis.ReadUnsignedInt(); this._recordLength = dis.ReadUnsignedShort(); this._padding = dis.ReadUnsignedShort(); this._emitterNumber = dis.ReadUnsignedByte(); this._beamNumber = dis.ReadUnsignedByte(); this._stateIndicator = dis.ReadUnsignedByte(); this._padding2 = dis.ReadUnsignedByte(); this._falseTargetCount = dis.ReadFloat(); this._walkSpeed = dis.ReadFloat(); this._walkAcceleration = dis.ReadFloat(); this._maximumWalkDistance = dis.ReadFloat(); this._keepTime = dis.ReadFloat(); this._echoSpacing = dis.ReadFloat(); this._padding3 = dis.ReadUnsignedInt(); } 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._recordType = dis.ReadUnsignedInt(); this._recordLength = dis.ReadUnsignedShort(); this._padding = dis.ReadUnsignedShort(); this._emitterNumber = dis.ReadUnsignedByte(); this._beamNumber = dis.ReadUnsignedByte(); this._stateIndicator = dis.ReadUnsignedByte(); this._padding2 = dis.ReadUnsignedInt(); this._azimuthOffset = dis.ReadFloat(); this._azimuthWidth = dis.ReadFloat(); this._azimuthPullRate = dis.ReadFloat(); this._azimuthPullAcceleration = dis.ReadFloat(); this._elevationOffset = dis.ReadFloat(); this._elevationWidth = dis.ReadFloat(); this._elevationPullRate = dis.ReadFloat(); this._elevationPullAcceleration = dis.ReadFloat(); this._padding3 = dis.ReadUnsignedInt(); } 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._recordType = dis.ReadUnsignedInt(); this._recordLength = dis.ReadUnsignedShort(); this._ioStatus = dis.ReadUnsignedByte(); this._ioLinkType = dis.ReadUnsignedByte(); this._ioEffect.Unmarshal(dis); this._ioEffectDutyCycle = dis.ReadUnsignedByte(); this._ioEffectDuration = dis.ReadUnsignedShort(); this._ioProcess = dis.ReadUnsignedShort(); this._padding = dis.ReadUnsignedShort(); } 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._recordType = dis.ReadUnsignedByte(); this._changeIndicator = dis.ReadUnsignedByte(); this._associationStatus = dis.ReadUnsignedByte(); this._associationType = dis.ReadUnsignedByte(); this._entityID.Unmarshal(dis); this._owsSttionLocation = dis.ReadUnsignedShort(); this._physicalConnectionType = dis.ReadUnsignedShort(); this._groupMemberType = dis.ReadUnsignedByte(); this._groupNumber = dis.ReadUnsignedShort(); } 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._segmentNumber = dis.ReadUnsignedByte(); this._segmentAppearance.Unmarshal(dis); this._location.Unmarshal(dis); this._orientation.Unmarshal(dis); this._segmentLength = dis.ReadUnsignedShort(); this._segmentWidth = dis.ReadUnsignedShort(); this._segmentHeight = dis.ReadUnsignedShort(); this._segmentDepth = dis.ReadUnsignedShort(); this._pad1 = dis.ReadUnsignedInt(); } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }
/// <exception cref="IOException"/> public static AnnotationExprent ParseAnnotation(DataInputStream data, ConstantPool pool) { string className = pool.GetPrimitiveConstant(data.ReadUnsignedShort()).GetString( ); List <string> names; List <Exprent> values; int len = data.ReadUnsignedShort(); if (len > 0) { names = new List <string>(len); values = new List <Exprent>(len); for (int i = 0; i < len; i++) { names.Add(pool.GetPrimitiveConstant(data.ReadUnsignedShort()).GetString()); values.Add(ParseAnnotationElement(data, pool)); } } else { names = new System.Collections.Generic.List <string>(); values = new System.Collections.Generic.List <Exprent>(); } return(new AnnotationExprent(new VarType(className).value, names, values)); }
public virtual void Unmarshal(DataInputStream dis) { if (dis != null) { try { this._entityKind = dis.ReadUnsignedByte(); this._domain = dis.ReadUnsignedByte(); this._country = dis.ReadUnsignedShort(); this._category = dis.ReadUnsignedByte(); this._nomenclatureVersion = dis.ReadUnsignedByte(); this._nomenclature = dis.ReadUnsignedShort(); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public virtual void Unmarshal(DataInputStream dis) { if (dis != null) { try { this._activeEmissionParameterIndex = dis.ReadUnsignedShort(); this._scanPattern = dis.ReadUnsignedShort(); this._beamCenterAzimuth = dis.ReadFloat(); this._azimuthalBeamwidth = dis.ReadFloat(); this._beamCenterDE = dis.ReadFloat(); this._deBeamwidth = dis.ReadFloat(); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._requestID = dis.ReadUnsignedInt(); this._requiredReliabilityService = dis.ReadUnsignedByte(); this._pad1 = dis.ReadUnsignedShort(); this._pad2 = dis.ReadUnsignedByte(); this._eventType = dis.ReadUnsignedShort(); this._time = dis.ReadUnsignedInt(); this._numberOfRecords = dis.ReadUnsignedInt(); for (int idx = 0; idx < this.NumberOfRecords; idx++) { FourByteChunk anX = new FourByteChunk(); anX.Unmarshal(dis); this._recordIDs.Add(anX); } ; } 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._beamDataLength = dis.ReadUnsignedShort(); this._beamIDNumber = dis.ReadUnsignedByte(); this._pad2 = dis.ReadUnsignedShort(); this._fundamentalDataParameters.Unmarshal(dis); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._entityID.Unmarshal(dis); this._communicationsDeviceID = dis.ReadUnsignedShort(); this._encodingScheme = dis.ReadUnsignedShort(); this._tdlType = dis.ReadUnsignedShort(); this._sampleRate = dis.ReadUnsignedInt(); this._dataLength = dis.ReadUnsignedShort(); this._samples = dis.ReadUnsignedShort(); this._data = dis.ReadByteArray(this._dataLength); } 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._spreadSpectrum = dis.ReadUnsignedShort(); this._major = dis.ReadUnsignedShort(); this._detail = dis.ReadUnsignedShort(); this._system = dis.ReadUnsignedShort(); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._receiverState = dis.ReadUnsignedShort(); this._padding1 = dis.ReadUnsignedShort(); this._receivedPoser = dis.ReadFloat(); this._transmitterEntityId.Unmarshal(dis); this._transmitterRadioId = dis.ReadUnsignedShort(); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._entityID.Unmarshal(dis); this._communicationsDeviceID = dis.ReadUnsignedShort(); this._encodingScheme = dis.ReadUnsignedShort(); this._tdlType = dis.ReadUnsignedShort(); this._sampleRate = dis.ReadUnsignedInt(); this._dataLength = dis.ReadUnsignedShort(); this._samples = dis.ReadUnsignedShort(); this._data = dis.ReadByteArray(this._dataLength); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._acknowledgeFlag = dis.ReadUnsignedShort(); this._responseFlag = dis.ReadUnsignedShort(); this._requestID = dis.ReadUnsignedInt(); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._encodingScheme = dis.ReadUnsignedShort(); this._tdlType = dis.ReadUnsignedShort(); this._sampleRate = dis.ReadUnsignedInt(); this._dataLength = dis.ReadShort(); this._samples = dis.ReadShort(); this._data = dis.ReadByteArray((this._dataLength / 8) + (this._dataLength % 8 > 0 ? 1 : 0)); //09062009 Post processed. Needed to convert from bits to bytes } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._minefieldID.Unmarshal(dis); this._minefieldSequence = dis.ReadUnsignedShort(); this._forceID = dis.ReadUnsignedByte(); this._numberOfPerimeterPoints = dis.ReadUnsignedByte(); this._minefieldType.Unmarshal(dis); this._numberOfMineTypes = dis.ReadUnsignedShort(); this._minefieldLocation.Unmarshal(dis); this._minefieldOrientation.Unmarshal(dis); this._appearance = dis.ReadUnsignedShort(); this._protocolMode = dis.ReadUnsignedShort(); for (int idx = 0; idx < this.NumberOfPerimeterPoints; idx++) { Point anX = new Point(); anX.Unmarshal(dis); this._perimeterPoints.Add(anX); } for (int idx = 0; idx < this.NumberOfMineTypes; idx++) { EntityType anX = new EntityType(); anX.Unmarshal(dis); this._mineType.Add(anX); } } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public virtual void Unmarshal(DataInputStream dis) { if (dis != null) { try { this._aggregateKind = dis.ReadUnsignedByte(); this._domain = dis.ReadUnsignedByte(); this._country = dis.ReadUnsignedShort(); this._category = dis.ReadUnsignedByte(); this._subcategory = dis.ReadUnsignedByte(); this._specific = dis.ReadUnsignedByte(); this._extra = dis.ReadUnsignedByte(); } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._objectID.Unmarshal(dis); this._referencedObjectID.Unmarshal(dis); this._updateNumber = dis.ReadUnsignedShort(); this._forceID = dis.ReadUnsignedByte(); this._modifications = dis.ReadUnsignedByte(); this._objectType.Unmarshal(dis); this._objectLocation.Unmarshal(dis); this._objectOrientation.Unmarshal(dis); this._objectAppearance = dis.ReadDouble(); this._requesterID.Unmarshal(dis); this._receivingID.Unmarshal(dis); this._pad2 = dis.ReadUnsignedInt(); } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }
public override void Unmarshal(DataInputStream dis) { base.Unmarshal(dis); if (dis != null) { try { this._emittingEntityID.Unmarshal(dis); this._eventID.Unmarshal(dis); this._stateUpdateIndicator = dis.ReadUnsignedByte(); this._numberOfSystems = dis.ReadUnsignedByte(); this._paddingForEmissionsPdu = dis.ReadUnsignedShort(); this._systemDataLength = dis.ReadUnsignedByte(); this._numberOfBeams = dis.ReadUnsignedByte(); this._emitterSystem.Unmarshal(dis); this._location.Unmarshal(dis); for (int idx = 0; idx < this.NumberOfSystems; idx++) { Vector3Float anX = new Vector3Float(); anX.Unmarshal(dis); this._systems.Add(anX); } ; } catch (Exception e) { #if DEBUG Trace.WriteLine(e); Trace.Flush(); #endif this.OnException(e); } } }