Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
lzo/lzo1x.h
✓ #include <lzo/lzo1x.h>
Compress a string with LZO1X
#include <lzo/lzo1x.h>
#include <cstring>
int main() {
lzo_bytep in = (lzo_bytep)"Hello, world!";
lzo_uint in_len = strlen((char*)in);
lzo_bytep out = new lzo_byte[in_len * 2];
lzo_uint out_len;
lzo_init();
lzo1x_1_compress(in, in_len, out, &out_len, nullptr);
delete[] out;
return 0;
}
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.