Ejemplo n.º 1
0
        new public int getMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize = base.getMarshalledSize();
            marshalSize = marshalSize + _receivingEntityID.getMarshalledSize(); // _receivingEntityID
            marshalSize = marshalSize + _supplyingEntityID.getMarshalledSize(); // _supplyingEntityID
            marshalSize = marshalSize + 1;                                      // _numberOfSupplyTypes
            marshalSize = marshalSize + 2;                                      // _padding1
            marshalSize = marshalSize + 1;                                      // _padding2
            for (int idx = 0; idx < _supplies.Count; idx++)
            {
                SupplyQuantity listElement = (SupplyQuantity)_supplies[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }

            return(marshalSize);
        }