Lines Matching +full:- +full:- +full:preset +full:- +full:default
5 one-shot (de)compression.
45 Note that LZMAFile provides a *binary* file interface - data read
50 format=None, check=-1, preset=None, filters=None): argument
51 """Open an LZMA-compressed file in binary mode.
58 mode can be "r" for reading (default), "w" for (over)writing,
64 default is FORMAT_XZ.
68 the default is CHECK_CRC64. FORMAT_ALONE and FORMAT_RAW do not
69 support integrity checks - for these formats, check must be
72 When opening a file for reading, the *preset* argument is not
78 compressor can be specified either as a preset compression
79 level (with the *preset* argument), or in detail as a custom
81 FORMAT_ALONE, the default is to use the PRESET_DEFAULT preset
83 chain; the raw compressor does not support preset compression
86 preset (if provided) should be an integer in the range 0-9,
87 optionally OR-ed with the constant PRESET_EXTREME.
98 if check != -1:
101 if preset is not None:
102 raise ValueError("Cannot specify a preset compression "
112 preset=preset, filters=filters)
182 def peek(self, size=-1):
193 def read(self, size=-1):
202 def read1(self, size=-1):
214 def readline(self, size=-1):
218 non-negative, no more than size bytes will be read (in which
251 0: start of stream (default): offset must not be negative
272 format=None, check=-1, preset=None, filters=None, argument
274 """Open an LZMA-compressed file in binary or text mode.
280 The mode argument can be "r", "rb" (default), "w", "wb", "x", "xb",
284 The format, check, preset and filters arguments specify the
310 preset=preset, filters=filters)
319 def compress(data, format=FORMAT_XZ, check=-1, preset=None, filters=None): argument
323 optional arguments *format*, *check*, *preset* and *filters*.
327 comp = LZMACompressor(format, check, preset, filters)
352 "end-of-stream marker was reached")