Example #1
0
        new public int getMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize = base.getMarshalledSize();
            marshalSize = marshalSize + _objectID.getMarshalledSize();           // _objectID
            marshalSize = marshalSize + _referencedObjectID.getMarshalledSize(); // _referencedObjectID
            marshalSize = marshalSize + 2;                                       // _updateNumber
            marshalSize = marshalSize + 1;                                       // _forceID
            marshalSize = marshalSize + 1;                                       // _modifications
            marshalSize = marshalSize + _objectType.getMarshalledSize();         // _objectType
            marshalSize = marshalSize + _objectLocation.getMarshalledSize();     // _objectLocation
            marshalSize = marshalSize + _objectOrientation.getMarshalledSize();  // _objectOrientation
            marshalSize = marshalSize + 8;                                       // _objectAppearance
            marshalSize = marshalSize + _requesterID.getMarshalledSize();        // _requesterID
            marshalSize = marshalSize + _receivingID.getMarshalledSize();        // _receivingID
            marshalSize = marshalSize + 4;                                       // _pad2

            return(marshalSize);
        }
        new public int getMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize = base.getMarshalledSize();
            marshalSize = marshalSize + _objectID.getMarshalledSize();           // _objectID
            marshalSize = marshalSize + _referencedObjectID.getMarshalledSize(); // _referencedObjectID
            marshalSize = marshalSize + 2;                                       // _updateNumber
            marshalSize = marshalSize + 1;                                       // _forceID
            marshalSize = marshalSize + 1;                                       // _numberOfSegments
            marshalSize = marshalSize + _requesterID.getMarshalledSize();        // _requesterID
            marshalSize = marshalSize + _receivingID.getMarshalledSize();        // _receivingID
            marshalSize = marshalSize + _objectType.getMarshalledSize();         // _objectType
            for (int idx = 0; idx < _linearSegmentParameters.Count; idx++)
            {
                LinearSegmentParameter listElement = (LinearSegmentParameter)_linearSegmentParameters[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }

            return(marshalSize);
        }