public MySqlStream(Stream baseStream, Encoding encoding, bool compress) : this(encoding) { timedStream = new TimedStream(baseStream); Stream stream; if (compress) stream = new CompressedStream(timedStream); else stream = timedStream; inStream = new BufferedStream(stream); outStream = stream; }
public MySqlStream(Stream baseStream, Encoding encoding, bool compress) : this(encoding) { this.timedStream = new TimedStream(baseStream); Stream stream; if (compress) { stream = new CompressedStream(this.timedStream); } else { stream = this.timedStream; } this.inStream = new BufferedStream(stream); this.outStream = stream; }
public MySqlStream(Stream baseStream, Encoding encoding, bool compress) : this(encoding) { timedStream = new TimedStream(baseStream); Stream stream; if (compress) { stream = new CompressedStream(timedStream); } else { stream = timedStream; } inStream = stream; outStream = stream; }
public MySqlStream(Stream baseStream, Encoding encoding, bool compress) : this(encoding) { timedStream = new TimedStream(baseStream); Stream stream; if (compress) stream = new CompressedStream(timedStream); else stream = timedStream; #region async _baseStream = timedStream.BaseStream as NetworkStream; #endregion inStream = new BufferedStream(stream); outStream = stream; }
public MySqlStream(Stream baseStream, Encoding encoding, bool compress) : this(encoding) { timedStream = new TimedStream(baseStream); Stream stream; if (compress) { stream = new CompressedStream(timedStream); } else { stream = timedStream; } #if RT inStream = baseStream; #else inStream = new BufferedStream(stream); #endif outStream = stream; }