@@ -46,25 +46,30 @@ class IsalError(OSError): ...
46
46
47
47
error : IsalError
48
48
49
- def adler32 (data , value : int = ... ) -> int : ...
50
- def crc32 (data , value : int = ... ) -> int : ...
49
+ def adler32 (data , value : int = 1 ) -> int : ...
50
+ def crc32 (data , value : int = 0 ) -> int : ...
51
51
52
- def compress (data , level : int = ..., wbits : int = ...) -> bytes : ...
53
- def decompress (data , wbits : int = ..., bufsize : int = ...) -> bytes : ...
52
+ def compress (data , level : int = ISAL_DEFAULT_COMPRESSION ,
53
+ wbits : int = MAX_WBITS ) -> bytes : ...
54
+ def decompress (data , wbits : int = MAX_WBITS ,
55
+ bufsize : int = DEF_BUF_SIZE ) -> bytes : ...
54
56
55
57
class Compress :
56
58
def compress (self , data ) -> bytes : ...
57
- def flush (self , mode : int = ... ) -> bytes : ...
59
+ def flush (self , mode : int = Z_FINISH ) -> bytes : ...
58
60
59
61
class Decompress :
60
62
unused_data : bytes
61
63
unconsumed_tail : bytes
62
64
eof : bool
63
65
64
- def decompress (self , data , max_length : int = ... ) -> bytes : ...
65
- def flush (self , length : int = ... ) -> bytes : ...
66
+ def decompress (self , data , max_length : int = 0 ) -> bytes : ...
67
+ def flush (self , length : int = DEF_BUF_SIZE ) -> bytes : ...
66
68
67
- def compressobj (level : int = ..., method : int = ..., wbits : int = ...,
68
- memLevel : int = ..., strategy : int = ..., zdict = ...
69
- ) -> Compress : ...
70
- def decompressobj (wbits : int = ..., zdict = ...) -> Decompress : ...
69
+ def compressobj (level : int = ISAL_DEFAULT_COMPRESSION ,
70
+ method : int = DEFLATED ,
71
+ wbits : int = MAX_WBITS ,
72
+ memLevel : int = DEF_MEM_LEVEL ,
73
+ strategy : int = Z_DEFAULT_STRATEGY ,
74
+ zdict = None ) -> Compress : ...
75
+ def decompressobj (wbits : int = MAX_WBITS , zdict = None ) -> Decompress : ...
0 commit comments