new public int getMarshalledSize() { int marshalSize = 0; marshalSize = base.getMarshalledSize(); marshalSize = marshalSize + _munitionID.getMarshalledSize(); // _munitionID marshalSize = marshalSize + _eventID.getMarshalledSize(); // _eventID marshalSize = marshalSize + 4; // _fireMissionIndex marshalSize = marshalSize + _locationInWorldCoordinates.getMarshalledSize(); // _locationInWorldCoordinates marshalSize = marshalSize + _burstDescriptor.getMarshalledSize(); // _burstDescriptor marshalSize = marshalSize + _velocity.getMarshalledSize(); // _velocity marshalSize = marshalSize + 4; // _range return(marshalSize); }
new public int getMarshalledSize() { int marshalSize = 0; marshalSize = base.getMarshalledSize(); marshalSize = marshalSize + _munitionID.getMarshalledSize(); // _munitionID marshalSize = marshalSize + _eventID.getMarshalledSize(); // _eventID marshalSize = marshalSize + _velocity.getMarshalledSize(); // _velocity marshalSize = marshalSize + _locationInWorldCoordinates.getMarshalledSize(); // _locationInWorldCoordinates marshalSize = marshalSize + _burstDescriptor.getMarshalledSize(); // _burstDescriptor marshalSize = marshalSize + _locationInEntityCoordinates.getMarshalledSize(); // _locationInEntityCoordinates marshalSize = marshalSize + 1; // _detonationResult marshalSize = marshalSize + 1; // _numberOfArticulationParameters marshalSize = marshalSize + 2; // _pad for (int idx = 0; idx < _articulationParameters.Count; idx++) { ArticulationParameter listElement = (ArticulationParameter)_articulationParameters[idx]; marshalSize = marshalSize + listElement.getMarshalledSize(); } return(marshalSize); }