Inflater is used to decompress data that has been compressed according
to the "deflate" standard described in rfc1950.
The usage is as following. First you have to set some input with
setInput()
, then inflate() it.
This implementation is a port of Puff by Mark Addler that comes with
the zlip data compression library. It is not the fastest routine as
he intended it for learning purposes, his actual optimized inflater code
is very different. I went with this approach basically because I got a
headache looking at the optimized inflater code and porting this
was a breeze. The speed should be adequate but there is plenty of room
for improvements here.
public function inflate(buf:ByteArray):uint
Inflates the compressed stream to the output buffer.
Parameters
| buf:ByteArray — the output buffer.
|
Returns
public function setInput(buf:ByteArray):void
Sets the input.
Parameters
| buf:ByteArray — the input.
|
http://blog.papervision3d.org