Rizin
unix-like reverse engineering framework and cli tools
lzma.h File Reference

The public API of liblzma data compression library. More...

#include <stddef.h>
#include <inttypes.h>
#include <limits.h>
#include "lzma/version.h"
#include "lzma/base.h"
#include "lzma/vli.h"
#include "lzma/check.h"
#include "lzma/filter.h"
#include "lzma/bcj.h"
#include "lzma/delta.h"
#include "lzma/lzma12.h"
#include "lzma/container.h"
#include "lzma/stream_flags.h"
#include "lzma/block.h"
#include "lzma/index.h"
#include "lzma/index_hash.h"
#include "lzma/hardware.h"

Go to the source code of this file.

Macros

#define UINT32_C(n)   n ## U
 
#define UINT64_C(n)   n ## UL
 
#define UINT32_MAX   (UINT32_C(4294967295))
 
#define UINT64_MAX   (UINT64_C(18446744073709551615))
 
#define LZMA_API_IMPORT
 
#define LZMA_API_CALL
 
#define LZMA_API(type)   LZMA_API_IMPORT type LZMA_API_CALL
 
#define lzma_nothrow
 
#define lzma_attribute(attr)
 
#define lzma_attr_pure   lzma_attribute((__pure__))
 
#define lzma_attr_const   lzma_attribute((__const__))
 
#define lzma_attr_warn_unused_result    lzma_attribute((__warn_unused_result__))
 
#define LZMA_H_INTERNAL   1
 

Detailed Description

The public API of liblzma data compression library.

liblzma is a public domain general-purpose data compression library with a zlib-like API. The native file format is .xz, but also the old .lzma format and raw (no headers) streams are supported. Multiple compression algorithms (filters) are supported. Currently LZMA2 is the primary filter.

liblzma is part of XZ Utils http://tukaani.org/xz/. XZ Utils includes a gzip-like command line tool named xz and some other tools. XZ Utils is developed and maintained by Lasse Collin.

Major parts of liblzma are based on Igor Pavlov's public domain LZMA SDK http://7-zip.org/sdk.html.

The SHA-256 implementation is based on the public domain code found from 7-Zip http://7-zip.org/, which has a modified version of the public domain SHA-256 code found from Crypto++ http://www.cryptopp.com/. The SHA-256 code in Crypto++ was written by Kevin Springle and Wei Dai.

Definition in file lzma.h.

Macro Definition Documentation

◆ LZMA_API

#define LZMA_API (   type)    LZMA_API_IMPORT type LZMA_API_CALL

Definition at line 207 of file lzma.h.

◆ LZMA_API_CALL

#define LZMA_API_CALL

Definition at line 202 of file lzma.h.

◆ LZMA_API_IMPORT

#define LZMA_API_IMPORT

Definition at line 194 of file lzma.h.

◆ lzma_attr_const

#define lzma_attr_const   lzma_attribute((__const__))

Definition at line 269 of file lzma.h.

◆ lzma_attr_pure

size_t uint64_t crc lzma_nothrow lzma_attr_pure   lzma_attribute((__pure__))

Definition at line 265 of file lzma.h.

◆ lzma_attr_warn_unused_result

const uint8_t *in lzma_nothrow lzma_attr_warn_unused_result    lzma_attribute((__warn_unused_result__))

Definition at line 273 of file lzma.h.

◆ lzma_attribute

#define lzma_attribute (   attr)

Definition at line 259 of file lzma.h.

◆ LZMA_H_INTERNAL

#define LZMA_H_INTERNAL   1

Definition at line 290 of file lzma.h.

◆ lzma_nothrow

Definition at line 231 of file lzma.h.

◆ UINT32_C

#define UINT32_C (   n)    n ## U

Definition at line 139 of file lzma.h.

◆ UINT32_MAX

#define UINT32_MAX   (UINT32_C(4294967295))

Definition at line 158 of file lzma.h.

◆ UINT64_C

#define UINT64_C (   n)    n ## UL

Definition at line 152 of file lzma.h.

◆ UINT64_MAX

#define UINT64_MAX   (UINT64_C(18446744073709551615))

Definition at line 162 of file lzma.h.