Module: XZ::LibLZMA

Extended by:
FFI::Library
Defined in:
lib/xz.rb

Overview

This module wraps functions and enums used by liblzma.

Constant Summary collapse

UINT64_MAX =

The maximum value of an uint64_t, as defined by liblzma. Should be the same as

(2 ** 64) - 1
18446744073709551615
LZMA_PRESET_EXTREME =

Activates extreme compression. Same as xz’s “-e” commandline switch.

1 << 31
LZMA_TELL_NO_CHECK =
0x02
LZMA_TELL_UNSUPPORTED_CHECK =
0x02
LZMA_TELL_ANY_CHECK =
0x04
LZMA_CONCATENATED =
0x08
LZMA_RESERVED_ENUM =

Placeholder enum used by liblzma for later additions.

enum :lzma_reserved_enum, 0
LZMA_ACTION =

Actions that can be passed to the lzma_code() function.

enum  :lzma_run, 0,
:lzma_sync_flush,
:lzma_full_flush,
:lzma_finish
LZMA_CHECK =

Integrity check algorithms supported by liblzma.

enum :lzma_check_none, 0,
:lzma_check_crc32, 1,
:lzma_check_crc64, 4,
:lzma_check_sha256, 10
LZMA_RET =

Possible return values of liblzma functions.

enum :lzma_ok, 0,
:lzma_stream_end,
:lzma_no_check,
:lzma_unsupported_check,
:lzma_get_check,
:lzma_mem_error,
:lzma_memlimit_error,
:lzma_format_error,
:lzma_options_error,
:lzma_data_error,
:lzma_buf_error,
:lzma_prog_error