2 #include "lzo/lzoutil.h"
14 if (lzo_init() != LZO_E_OK)
16 COUT <<
"Could not initialize LZO" << std::endl;
29 lzo_uint outputlength_in_bytes;
33 outputlength_in_bytes = array[3];
37 bytes =
i4swap(array[0])-16;
38 outputlength_in_bytes =
i4swap(array[3]);
43 COUT <<
" wrong buffer" << std::endl;
49 int outputlength = (outputlength_in_bytes+3)/4;
54 olen = outputlength_in_bytes;
55 lzo1x_decompress_safe ( (lzo_byte *) &array[4], bytes,
61 if ( olen != outputlength_in_bytes)
63 COUT << __FILE__ <<
" " << __LINE__ <<
" wrong-sized buffer: " << olen <<
" should be " << outputlength_in_bytes << std::endl;