public override int GetMarshalledSize() { int marshalSize = 0; marshalSize = base.GetMarshalledSize(); marshalSize += this._minefieldID.GetMarshalledSize(); // this._minefieldID marshalSize += this._requestingEntityID.GetMarshalledSize(); // this._requestingEntityID marshalSize += 2; // this._minefieldSequenceNumbeer marshalSize += 1; // this._requestID marshalSize += 1; // this._pduSequenceNumber marshalSize += 1; // this._numberOfPdus marshalSize += 1; // this._numberOfMinesInThisPdu marshalSize += 1; // this._numberOfSensorTypes marshalSize += 1; // this._pad2 marshalSize += 4; // this._dataFilter marshalSize += this._mineType.GetMarshalledSize(); // this._mineType for (int idx = 0; idx < this._sensorTypes.Count; idx++) { TwoByteChunk listElement = (TwoByteChunk)this._sensorTypes[idx]; marshalSize += listElement.GetMarshalledSize(); } marshalSize += 1; // this._pad3 for (int idx = 0; idx < this._mineLocation.Count; idx++) { Vector3Float listElement = (Vector3Float)this._mineLocation[idx]; marshalSize += listElement.GetMarshalledSize(); } return(marshalSize); }
public override int GetMarshalledSize() { int marshalSize = 0; marshalSize = base.GetMarshalledSize(); marshalSize += this._radioEntityType.GetMarshalledSize(); // this._radioEntityType marshalSize += 1; // this._transmitState marshalSize += 1; // this._inputSource marshalSize += 2; // this._padding1 marshalSize += this._antennaLocation.GetMarshalledSize(); // this._antennaLocation marshalSize += this._relativeAntennaLocation.GetMarshalledSize(); // this._relativeAntennaLocation marshalSize += 2; // this._antennaPatternType marshalSize += 2; // this._antennaPatternCount marshalSize += 8; // this._frequency marshalSize += 4; // this._transmitFrequencyBandwidth marshalSize += 4; // this._power marshalSize += this._modulationType.GetMarshalledSize(); // this._modulationType marshalSize += 2; // this._cryptoSystem marshalSize += 2; // this._cryptoKeyId marshalSize += 1; // this._modulationParameterCount marshalSize += 2; // this._padding2 marshalSize += 1; // this._padding3 for (int idx = 0; idx < this._modulationParametersList.Count; idx++) { Vector3Float listElement = (Vector3Float)this._modulationParametersList[idx]; marshalSize += listElement.GetMarshalledSize(); } for (int idx = 0; idx < this._antennaPatternList.Count; idx++) { Vector3Float listElement = (Vector3Float)this._antennaPatternList[idx]; marshalSize += listElement.GetMarshalledSize(); } return(marshalSize); }