python (3.12.0)
ˑe3 d Z g dZddlZddlZddlZddl ddlmZmZ ddlZdZ dZ
dZ G d d ej Z
ddd
dddddddZed
ddfd
ZeddfdZy)aS Interface to the liblzma compression library.
This module provides a class for reading and writing compressed files,
classes for incremental (de)compression, and convenience functions for
one-shot (de)compression.
These classes and functions support both the XZ and legacy LZMA
container formats, as well as raw compressed data streams.
)$
CHECK_NONECHECK_CRC32CHECK_CRC64CHECK_SHA256CHECK_ID_MAX
CHECK_UNKNOWNFILTER_LZMA1FILTER_LZMA2FILTER_DELTA
FILTER_X86FILTER_IA64
FILTER_ARMFILTER_ARMTHUMBFILTER_POWERPCFILTER_SPARCFORMAT_AUTO FORMAT_XZFORMAT_ALONE
FORMAT_RAWMF_HC3MF_HC4MF_BT2MF_BT3MF_BT4 MODE_FASTMODE_NORMALPRESET_DEFAULTPRESET_EXTREMELZMACompressorLZMADecompressorLZMAFile LZMAErroropencompress
decompressis_check_supported N)*)_encode_filter_properties_decode_filter_properties c e Zd ZdZdddddddZd Zed Zd Zd Z d
Z
d ZddZdd
Z
ddZddZd Zej$ fdZd Zy)r a@ A file object providing transparent LZMA (de)compression.
An LZMAFile can act as a wrapper for an existing file object, or
refer directly to a named file on disk.
Note that LZMAFile provides a *binary* file interface - data read
is returned as bytes, and data to be written must be given as bytes.
Nformatcheckpresetfiltersc d| _ d| _ t | _ |dv r,|dk7 rt d |t d |t
}t }nH|dv r*|t }t }t |||| | _
d | _ nt d
j | t |t t t j"