Beispiel #1
0
 /// <summary>Creates a new decompressor.</summary>
 public ZlibDecompressor(ZlibDecompressor.CompressionHeader header, int directBufferSize
                         )
 {
     this.header           = header;
     this.directBufferSize = directBufferSize;
     compressedDirectBuf   = ByteBuffer.AllocateDirect(directBufferSize);
     uncompressedDirectBuf = ByteBuffer.AllocateDirect(directBufferSize);
     uncompressedDirectBuf.Position(directBufferSize);
     stream = Init(this.header.WindowBits());
 }
Beispiel #2
0
 public ZlibDirectDecompressor(ZlibDecompressor.CompressionHeader header, int directBufferSize
                               )
     : base(header, directBufferSize)
 {
 }