/// <summary>
        /// Deep copy constructor.
        /// </summary>
        public SmbWriteMpxResponsePacket(SmbWriteMpxResponsePacket packet)
            : base(packet)
        {
            this.InitDefaultValue();

            this.smbParameters.WordCount = packet.SmbParameters.WordCount;
            this.smbParameters.ResponseMask = packet.SmbParameters.ResponseMask;

            this.smbData.ByteCount = packet.SmbData.ByteCount;
        }
        public SmbWriteMpxResponsePacket CreateWriteMpxResponse(
            CifsServerPerConnection connection,
            SmbWriteMpxRequestPacket request)
        {
            SmbWriteMpxResponsePacket response = new SmbWriteMpxResponsePacket();
            response.SmbHeader = CifsMessageUtils.CreateSmbHeader(connection, request);

            SMB_COM_WRITE_MPX_Response_SMB_Parameters smbParameters = response.SmbParameters;
            smbParameters.ResponseMask = request.SmbParameters.RequestMask;
            smbParameters.WordCount = (byte)(TypeMarshal.GetBlockMemorySize(smbParameters) / 2);
            response.SmbParameters = smbParameters;

            return response;
        }