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

            marshalSize = base.getMarshalledSize();
            marshalSize = marshalSize + _minefieldID.getMarshalledSize();        // _minefieldID
            marshalSize = marshalSize + _requestingEntityID.getMarshalledSize(); // _requestingEntityID
            marshalSize = marshalSize + 2;                                       // _minefieldSequenceNumbeer
            marshalSize = marshalSize + 1;                                       // _requestID
            marshalSize = marshalSize + 1;                                       // _pduSequenceNumber
            marshalSize = marshalSize + 1;                                       // _numberOfPdus
            marshalSize = marshalSize + 1;                                       // _numberOfMinesInThisPdu
            marshalSize = marshalSize + 1;                                       // _numberOfSensorTypes
            marshalSize = marshalSize + 1;                                       // _pad2
            marshalSize = marshalSize + 4;                                       // _dataFilter
            marshalSize = marshalSize + _mineType.getMarshalledSize();           // _mineType
            for (int idx = 0; idx < _sensorTypes.Count; idx++)
            {
                TwoByteChunk listElement = (TwoByteChunk)_sensorTypes[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }
            marshalSize = marshalSize + 1;  // _pad3
            for (int idx = 0; idx < _mineLocation.Count; idx++)
            {
                Vector3Float listElement = (Vector3Float)_mineLocation[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }

            return(marshalSize);
        }
Exemplo n.º 2
0
        new public int getMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize = base.getMarshalledSize();
            marshalSize = marshalSize + _minefieldID.getMarshalledSize();        // _minefieldID
            marshalSize = marshalSize + _requestingEntityID.getMarshalledSize(); // _requestingEntityID
            marshalSize = marshalSize + 1;                                       // _requestID
            marshalSize = marshalSize + 1;                                       // _numberOfPerimeterPoints
            marshalSize = marshalSize + 1;                                       // _pad2
            marshalSize = marshalSize + 1;                                       // _numberOfSensorTypes
            marshalSize = marshalSize + 4;                                       // _dataFilter
            marshalSize = marshalSize + _requestedMineType.getMarshalledSize();  // _requestedMineType
            for (int idx = 0; idx < _requestedPerimeterPoints.Count; idx++)
            {
                Point listElement = (Point)_requestedPerimeterPoints[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }
            for (int idx = 0; idx < _sensorTypes.Count; idx++)
            {
                TwoByteChunk listElement = (TwoByteChunk)_sensorTypes[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }

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

            marshalSize = base.getMarshalledSize();
            marshalSize = marshalSize + 4;  // _fieldScale
            marshalSize = marshalSize + 4;  // _fieldOffset
            marshalSize = marshalSize + 2;  // _numberOfValues
            for (int idx = 0; idx < _dataValues.Count; idx++)
            {
                TwoByteChunk listElement = (TwoByteChunk)_dataValues[idx];
                marshalSize = marshalSize + listElement.getMarshalledSize();
            }

            return(marshalSize);
        }