5 #include <lzo/lzoutil.h>
26 ophBuffer(fpp,where,length,status,irun,iseq)
35 if (lzo_init() != LZO_E_OK)
37 COUT <<
"Could not initialize LZO" << std::endl;
45 wrkmem = (lzo_bytep) lzo_malloc(LZO1X_1_12_MEM_COMPRESS);
48 memset(
wrkmem, 0, LZO1X_1_12_MEM_COMPRESS);
62 if (!
dirty)
return 0;
69 lzo1x_1_12_compress( (lzo_byte *)
bptr,
72 &outputlength_in_bytes,
wrkmem);
88 std::cout <<
" could not write output, bytes written: " << n << std::endl;