public override void Marshal(DataOutputStream dos) { base.Marshal(dos); if (dos != null) { try { this._radioEntityType.Marshal(dos); dos.WriteUnsignedByte((byte)this._transmitState); dos.WriteUnsignedByte((byte)this._inputSource); dos.WriteUnsignedShort((ushort)this._padding1); this._antennaLocation.Marshal(dos); this._relativeAntennaLocation.Marshal(dos); dos.WriteUnsignedShort((ushort)this._antennaPatternType); dos.WriteUnsignedShort((ushort)this._antennaPatternList.Count); dos.WriteUnsignedLong((ulong)this._frequency); dos.WriteFloat((float)this._transmitFrequencyBandwidth); dos.WriteFloat((float)this._power); this._modulationType.Marshal(dos); dos.WriteUnsignedShort((ushort)this._cryptoSystem); dos.WriteUnsignedShort((ushort)this._cryptoKeyId); dos.WriteUnsignedByte((byte)this._modulationParametersList.Count); dos.WriteUnsignedShort((ushort)this._padding2); dos.WriteUnsignedByte((byte)this._padding3); for (int idx = 0; idx < this._modulationParametersList.Count; idx++) { Vector3Float aVector3Float = (Vector3Float)this._modulationParametersList[idx]; aVector3Float.Marshal(dos); } for (int idx = 0; idx < this._antennaPatternList.Count; idx++) { Vector3Float aVector3Float = (Vector3Float)this._antennaPatternList[idx]; aVector3Float.Marshal(dos); } } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }
public override void Marshal(DataOutputStream dos) { base.Marshal(dos); if (dos != null) { try { this._minefieldID.Marshal(dos); this._requestingEntityID.Marshal(dos); dos.WriteUnsignedShort((ushort)this._minefieldSequenceNumbeer); dos.WriteUnsignedByte((byte)this._requestID); dos.WriteUnsignedByte((byte)this._pduSequenceNumber); dos.WriteUnsignedByte((byte)this._numberOfPdus); dos.WriteUnsignedByte((byte)this._mineLocation.Count); dos.WriteUnsignedByte((byte)this._sensorTypes.Count); dos.WriteUnsignedByte((byte)this._pad2); dos.WriteUnsignedInt((uint)this._dataFilter); this._mineType.Marshal(dos); for (int idx = 0; idx < this._sensorTypes.Count; idx++) { TwoByteChunk aTwoByteChunk = (TwoByteChunk)this._sensorTypes[idx]; aTwoByteChunk.Marshal(dos); } dos.WriteUnsignedByte((byte)this._pad3); for (int idx = 0; idx < this._mineLocation.Count; idx++) { Vector3Float aVector3Float = (Vector3Float)this._mineLocation[idx]; aVector3Float.Marshal(dos); } } catch (Exception e) { if (PduBase.TraceExceptions) { Trace.WriteLine(e); Trace.Flush(); } this.RaiseExceptionOccured(e); if (PduBase.ThrowExceptions) { throw e; } } } }