Compress

OllyDbg Plugin API

Compress

Compresses binary data. This function uses patent-free form of Lempel-Ziv compression algorithm. Returns length of compressed data or 0 if some error was detected during compression. First longword in the output buffer is the identifier of compressed data and second is the length of original data.

ulong Compress(char *bufin,ulong nbufin,char *bufout,ulong nbufout);

Parameters:

bufin - pointer to uncompressed data;

nbufin - size of uncompressed data;

bufout - pointer to buffer that will receive compressed data;

nbufout - size of bufout.

See also: Decompress