public int getMarshalledSize() { int marshalSize = 0; marshalSize = marshalSize + 1; // _segmentNumber marshalSize = marshalSize + _segmentAppearance.getMarshalledSize(); // _segmentAppearance marshalSize = marshalSize + _location.getMarshalledSize(); // _location marshalSize = marshalSize + _orientation.getMarshalledSize(); // _orientation marshalSize = marshalSize + 2; // _segmentLength marshalSize = marshalSize + 2; // _segmentWidth marshalSize = marshalSize + 2; // _segmentHeight marshalSize = marshalSize + 2; // _segmentDepth marshalSize = marshalSize + 4; // _pad1 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; // _modifications marshalSize = marshalSize + _objectType.getMarshalledSize(); // _objectType marshalSize = marshalSize + _objectAppearance.getMarshalledSize(); // _objectAppearance marshalSize = marshalSize + 2; // _numberOfPoints marshalSize = marshalSize + _requesterID.getMarshalledSize(); // _requesterID marshalSize = marshalSize + _receivingID.getMarshalledSize(); // _receivingID for (int idx = 0; idx < _objectLocation.Count; idx++) { Vector3Double listElement = (Vector3Double)_objectLocation[idx]; marshalSize = marshalSize + listElement.getMarshalledSize(); } return(marshalSize); }