예제 #1
0
        public override int GetMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize  = base.GetMarshalledSize();
            marshalSize += 4;  // this._requestID
            marshalSize += 1;  // this._requiredReliabilityService
            marshalSize += 2;  // this._pad1
            marshalSize += 1;  // this._pad2
            marshalSize += 4;  // this._numberOfRecordSets
            for (int idx = 0; idx < this._recordSets.Count; idx++)
            {
                RecordSet listElement = (RecordSet)this._recordSets[idx];
                marshalSize += listElement.GetMarshalledSize();
            }

            return(marshalSize);
        }
        public override int GetMarshalledSize()
        {
            int marshalSize = 0;

            marshalSize  = base.GetMarshalledSize();
            marshalSize += this._orginatingEntityID.GetMarshalledSize(); // this._orginatingEntityID
            marshalSize += this._recevingEntityID.GetMarshalledSize();   // this._recevingEntityID
            marshalSize += 4;                                            // this._requestID
            marshalSize += 1;                                            // this._requiredReliabilityService
            marshalSize += 1;                                            // this._tranferType
            marshalSize += this._transferEntityID.GetMarshalledSize();   // this._transferEntityID
            marshalSize += 1;                                            // this._numberOfRecordSets
            for (int idx = 0; idx < this._recordSets.Count; idx++)
            {
                RecordSet listElement = (RecordSet)this._recordSets[idx];
                marshalSize += listElement.GetMarshalledSize();
            }

            return(marshalSize);
        }