public SmbTransRawWriteNmpipeSuccessResponsePacket CreateTransRawWriteNmpipeSuccessResponse(
            CifsServerPerConnection connection,
            SmbTransRawWriteNmpipeRequestPacket request)
        {
            SmbTransRawWriteNmpipeSuccessResponsePacket response = new SmbTransRawWriteNmpipeSuccessResponsePacket();
            response.SmbHeader = CifsMessageUtils.CreateSmbHeader(connection, request);

            TRANS_RAW_WRITE_NMPIPE_Response_Trans_Parameters transParameters = response.TransParameters;
            transParameters.BytesWritten = (ushort)request.TransData.WriteData.Length;

            response.UpdateCountAndOffset();

            return response;
        }
 /// <summary>
 /// Deep copy constructor.
 /// </summary>
 public SmbTransRawWriteNmpipeSuccessResponsePacket(SmbTransRawWriteNmpipeSuccessResponsePacket packet)
     : base(packet)
 {
     this.InitDefaultValue();
     this.transParameters.BytesWritten = packet.transParameters.BytesWritten;
 }
 /// <summary>
 /// Deep copy constructor.
 /// </summary>
 public SmbTransRawWriteNmpipeSuccessResponsePacket(SmbTransRawWriteNmpipeSuccessResponsePacket packet)
     : base(packet)
 {
     this.InitDefaultValue();
     this.transParameters.BytesWritten = packet.transParameters.BytesWritten;
 }