Class: Zippo::Filter::DeflateUncompressor

Inherits:
Uncompressor show all
Defined in:
lib/zippo/filter/uncompressor/deflate.rb

Overview

Uncompresses the data using Zlib.

Constant Summary collapse

METHOD =
8

Constants included from Base

Base::BLOCK_SIZE

Instance Method Summary collapse

Methods inherited from Uncompressor

#read, #uncompress, #uncompress_to

Methods included from Base

included

Constructor Details

#initialize(io, compressed_size, zlib = Zlib::Inflate.new(-Zlib::MAX_WBITS)) ⇒ DeflateUncompressor

no header



11
12
13
14
# File 'lib/zippo/filter/uncompressor/deflate.rb', line 11

def initialize(io, compressed_size, zlib = Zlib::Inflate.new(-Zlib::MAX_WBITS)) # no header
  super(io, compressed_size)
  @zlib = zlib
end