Microsoft.Protocols.TestSuites.Common.RopFastTransferDestinationPutBufferRequest.Size C# (CSharp) Method

Size() public method

Return the size of RopFastTransferDestinationPutBuffer request buffer structure.
public Size ( ) : int
return int
        public int Size()
        {
            // 5 indicates sizeof (byte) * 3 + sizeof (Uint16)
            int size = sizeof(byte) * 5;
                                                                                                                                                                             
            // 0 indicates minimum size of TransferDataSize
            if (this.TransferDataSize > 0)
            {
                size += this.TransferDataSize;
            }
                                                                                                                                                                                                
            return size;
        }
    }
RopFastTransferDestinationPutBufferRequest