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

            this.smbParameters.WordCount = packet.SmbParameters.WordCount;
            this.smbParameters.TotalParameterCount = packet.SmbParameters.TotalParameterCount;
            this.smbParameters.TotalDataCount = packet.SmbParameters.TotalDataCount;
            this.smbParameters.Reserved1 = packet.SmbParameters.Reserved1;
            this.smbParameters.ParameterCount = packet.SmbParameters.ParameterCount;
            this.smbParameters.ParameterOffset = packet.SmbParameters.ParameterOffset;
            this.smbParameters.ParameterDisplacement = packet.SmbParameters.ParameterDisplacement;
            this.smbParameters.DataCount = packet.SmbParameters.DataCount;
            this.smbParameters.DataOffset = packet.SmbParameters.DataOffset;
            this.smbParameters.SetupCount = packet.SmbParameters.SetupCount;
            this.smbParameters.DataDisplacement = packet.SmbParameters.DataDisplacement;
            this.smbParameters.Reserved2 = packet.SmbParameters.Reserved2;

            if (packet.smbParameters.Setup != null)
            {
                this.smbParameters.Setup = new ushort[packet.smbParameters.Setup.Length];
                Array.Copy(packet.smbParameters.Setup, this.smbParameters.Setup, packet.smbParameters.Setup.Length);
            }
            else
            {
                this.smbParameters.Setup = new ushort[0];
            }
            this.smbData.ByteCount = packet.SmbData.ByteCount;

            if (packet.smbData.Pad1 != null)
            {
                this.smbData.Pad1 = new byte[packet.smbData.Pad1.Length];
                Array.Copy(packet.smbData.Pad1, this.smbData.Pad1, packet.smbData.Pad1.Length);
            }
            else
            {
                this.smbData.Pad1 = new byte[0];
            }

            if (packet.smbData.Trans2_Parameters != null)
            {
                this.smbData.Trans2_Parameters = new byte[packet.smbData.Trans2_Parameters.Length];
                Array.Copy(packet.smbData.Trans2_Parameters,
                    this.smbData.Trans2_Parameters, packet.smbData.Trans2_Parameters.Length);
            }
            else
            {
                this.smbData.Trans2_Parameters = new byte[0];
            }

            if (packet.smbData.Pad2 != null)
            {
                this.smbData.Pad2 = new byte[packet.smbData.Pad2.Length];
                Array.Copy(packet.smbData.Pad2, this.smbData.Pad2, packet.smbData.Pad2.Length);
            }
            else
            {
                this.smbData.Pad2 = new byte[0];
            }

            if (packet.smbData.Trans2_Data != null)
            {
                this.smbData.Trans2_Data = new byte[packet.smbData.Trans2_Data.Length];
                Array.Copy(packet.smbData.Trans2_Data, this.smbData.Trans2_Data, packet.smbData.Trans2_Data.Length);
            }
            else
            {
                this.smbData.Trans2_Data = new byte[0];
            }
        }
        /// <summary>
        /// Deep copy constructor.
        /// </summary>
        protected SmbTransaction2FinalResponsePacket(SmbTransaction2FinalResponsePacket packet)
            : base(packet)
        {
            this.InitDefaultValue();

            this.smbParameters.WordCount             = packet.SmbParameters.WordCount;
            this.smbParameters.TotalParameterCount   = packet.SmbParameters.TotalParameterCount;
            this.smbParameters.TotalDataCount        = packet.SmbParameters.TotalDataCount;
            this.smbParameters.Reserved1             = packet.SmbParameters.Reserved1;
            this.smbParameters.ParameterCount        = packet.SmbParameters.ParameterCount;
            this.smbParameters.ParameterOffset       = packet.SmbParameters.ParameterOffset;
            this.smbParameters.ParameterDisplacement = packet.SmbParameters.ParameterDisplacement;
            this.smbParameters.DataCount             = packet.SmbParameters.DataCount;
            this.smbParameters.DataOffset            = packet.SmbParameters.DataOffset;
            this.smbParameters.SetupCount            = packet.SmbParameters.SetupCount;
            this.smbParameters.DataDisplacement      = packet.SmbParameters.DataDisplacement;
            this.smbParameters.Reserved2             = packet.SmbParameters.Reserved2;

            if (packet.smbParameters.Setup != null)
            {
                this.smbParameters.Setup = new ushort[packet.smbParameters.Setup.Length];
                Array.Copy(packet.smbParameters.Setup, this.smbParameters.Setup, packet.smbParameters.Setup.Length);
            }
            else
            {
                this.smbParameters.Setup = new ushort[0];
            }
            this.smbData.ByteCount = packet.SmbData.ByteCount;

            if (packet.smbData.Pad1 != null)
            {
                this.smbData.Pad1 = new byte[packet.smbData.Pad1.Length];
                Array.Copy(packet.smbData.Pad1, this.smbData.Pad1, packet.smbData.Pad1.Length);
            }
            else
            {
                this.smbData.Pad1 = new byte[0];
            }

            if (packet.smbData.Trans2_Parameters != null)
            {
                this.smbData.Trans2_Parameters = new byte[packet.smbData.Trans2_Parameters.Length];
                Array.Copy(packet.smbData.Trans2_Parameters,
                           this.smbData.Trans2_Parameters, packet.smbData.Trans2_Parameters.Length);
            }
            else
            {
                this.smbData.Trans2_Parameters = new byte[0];
            }

            if (packet.smbData.Pad2 != null)
            {
                this.smbData.Pad2 = new byte[packet.smbData.Pad2.Length];
                Array.Copy(packet.smbData.Pad2, this.smbData.Pad2, packet.smbData.Pad2.Length);
            }
            else
            {
                this.smbData.Pad2 = new byte[0];
            }

            if (packet.smbData.Trans2_Data != null)
            {
                this.smbData.Trans2_Data = new byte[packet.smbData.Trans2_Data.Length];
                Array.Copy(packet.smbData.Trans2_Data, this.smbData.Trans2_Data, packet.smbData.Trans2_Data.Length);
            }
            else
            {
                this.smbData.Trans2_Data = new byte[0];
            }
        }