コード例 #1
0
ファイル: DecompressStream.cs プロジェクト: xinix00/ravendb
        public DecompressStream(Stream underlyingStream)
        {
            this.underlyingStream = new StreamReaderWithUnread(underlyingStream);
            compressed            = CheckMagicNumber();

            if (compressed)
            {
                deflateStream = new DeflateStream(underlyingStream, CompressionMode.Decompress, leaveOpen: true);
            }
        }
コード例 #2
0
ファイル: DecompressStream.cs プロジェクト: cocytus/ravendb
		public DecompressStream(Stream underlyingStream)
		{
			this.underlyingStream = new StreamReaderWithUnread(underlyingStream);
			compressed = CheckMagicNumber();

			if (compressed)
			{
				deflateStream = new DeflateStream(underlyingStream, CompressionMode.Decompress, leaveOpen: true);
			}
		}