ocean.io.compress.lzo.c.lzoconf

LZO library binding (lzoconf.h functions)

Please consult the original header documentation for details.

You need to have the library installed and link with -llzo2.

Members

Aliases

lzo_alloc_func_t
alias lzo_alloc_func_t = void* function(lzo_callback_t* self, size_t items, size_t size)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
lzo_compress_dict_t
alias lzo_compress_dict_t = int function(ubyte* src, size_t src_len, ubyte* dst, size_t* dst_len, void* wrkmem, char* dict, size_t dict_len)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
lzo_compress_t
alias lzo_compress_t = int function(ubyte* src, size_t src_len, ubyte* dst, size_t* dst_len, void* wrkmem)

Function type definitions

lzo_decompress_t
alias lzo_decompress_t = int function(ubyte* src, size_t src_len, ubyte* dst, size_t* dst_len, void* wrkmem)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
lzo_free_func_t
alias lzo_free_func_t = void function(lzo_callback_t* self, void* ptr)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
lzo_optimize_t
alias lzo_optimize_t = int function(ubyte* src, size_t src_len, ubyte* dst, size_t* dst_len, void* wrkmem)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
lzo_progress_func_t
alias lzo_progress_func_t = void function(lzo_callback_t*, size_t, size_t, int)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Enums

LzoStatus
enum LzoStatus

Status codes

Functions

lzo1x_max_compressed_length
size_t lzo1x_max_compressed_length(size_t uncompressed_length)

Calculates the maximum compressed length of data which has a length of uncompressed_length.

lzo_adler32
uint lzo_adler32(uint _adler, ubyte* _buf, uint _len)

Calculates an Adler-32 value from data in _buf.

lzo_adler32_init
uint lzo_adler32_init()

Returns the initial Adler-32 value to use with lzo_adler32().

lzo_crc32
uint lzo_crc32(uint _c, ubyte* _buf, uint _len)

Calculates a 32-bit CRC value from data in _buf.

lzo_crc32_init
uint lzo_crc32_init()

Returns the initial 32-bit CRC value to use with lzo_crc32().

lzo_get_crc32_table
uint* lzo_get_crc32_table()

Returns the table of 32-bit CRC values of all byte values. The table has a length of 256.

lzo_init
int lzo_init()

Initializes the library and informs it about the size of a variety of data types.

lzo_version
uint lzo_version()

Returns the library version number.

Static variables

Lzo1x1WorkmemSize
size_t Lzo1x1WorkmemSize;

Working memory size

Structs

lzo_callback_t
struct lzo_callback_t

lzo_callback_t structure

Meta

License

Boost Software License Version 1.0. See LICENSE_BOOST.txt for details. Alternatively, this file may be distributed under the terms of the Tango 3-Clause BSD License (see LICENSE_BSD.txt for details).

Bear in mind this module provides bindings to an external library that has its own license, which might be more restrictive. Please check the external library license to see which conditions apply for linking.