2 #include "lzo/lzoutil.h"
15 if (lzo_init() != LZO_E_OK)
17 COUT <<
"Could not initialize LZO" << std::endl;
30 lzo_uint outputlength_in_bytes;
34 outputlength_in_bytes = array[3];
38 bytes =
i4swap(array[0])-16;
39 outputlength_in_bytes =
i4swap(array[3]);
44 COUT <<
" wrong buffer" << std::endl;
50 int outputlength = (outputlength_in_bytes+3)/4;
55 olen = outputlength_in_bytes;
56 lzo1x_decompress_safe ( (lzo_byte *) &array[4], bytes,
62 if ( olen != outputlength_in_bytes)
64 COUT << __FILE__ <<
" " << __LINE__ <<
" wrong-sized buffer: " << olen <<
" should be " << outputlength_in_bytes << std::endl;