ok, thanks i got it.
its
int compress2(byte *dest, long *destlen, const byte *source, long sourcelen, int level);
(same uncompression method used.)
level: must be between 0-9 or -1 (it returns -2 , if something other than 1-9 or -1 entered)
1 low compression-high speed , 9 high comp.-low speed, 0 no compression(just store), -1 default
i think the level -1 is same as the normal compress method that ventilator used.
Thank you for thar super simple packer.
Last edited by Quadraxas; 02/19/08 08:23.