Пример #1
0
        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;
        }
Пример #2
0
 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;
 }
Пример #3
0
        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;
        }
Пример #4
0
        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;
        }
Пример #5
0
        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;
        }