资 源 简 介
-- An updated version of this library which resolves compilation issues with Flex and a corruption issue with Z_SYNC_FLUSH can be found on github: https://github.com/BenV/as3zlib --
This is a port of JZlib to as3.
JZlib is a re-implementation of zlib in pure Java.
This should support all the features of JZlib:
- deflate and inflate data
- support all compression levels
- support all zlib flushing modes
I did this port because as3 in Flash9 does not support deflate in ByteArray. AIR does support deflate and doesn"t need this code.
Full example of using this package with FZip can be found here.
Usage example:
```
var compressed:ByteArray = new ByteArray();
// set the compressed content
// if using Adobe AIR, you can inflate the byteArray like:
compressed.uncompress.apply(compressed, ["deflate"]);
// otherwise, you can use this libr