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

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

            this.smbData.ByteCount = packet.SmbData.ByteCount;
        }
        /// <summary>
        /// Deep copy constructor.
        /// </summary>
        public SmbWriteRawInterimResponsePacket(SmbWriteRawInterimResponsePacket packet)
            : base(packet)
        {
            this.InitDefaultValue();

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

            this.smbData.ByteCount = packet.SmbData.ByteCount;
        }
        public SmbWriteRawInterimResponsePacket CreateWriteRawInterimResponse(
            CifsServerPerConnection connection,
            SmbWriteRawRequestPacket request,
            ushort available)
        {
            SmbWriteRawInterimResponsePacket response = new SmbWriteRawInterimResponsePacket();
            response.SmbHeader = CifsMessageUtils.CreateSmbHeader(connection, request);

            SMB_COM_WRITE_RAW_InterimResponse_SMB_Parameters smbParameters = response.SmbParameters;
            smbParameters.Available = available;
            smbParameters.WordCount = (byte)(TypeMarshal.GetBlockMemorySize(smbParameters) / 2);
            response.SmbParameters = smbParameters;

            return response;
        }