add encrption module

fix bug in zstd compression warp code
fix bug when showing compression inforamtion
This commit is contained in:
2022-01-27 16:30:25 +08:00
parent ccb61741ee
commit cc123daaa0
6 changed files with 558 additions and 5 deletions

15
game_backuper/_zstd.pyi Normal file
View File

@@ -0,0 +1,15 @@
def version() -> str: ...
def maxCLevel() -> int: ...
class ZSTDCompressor: # noqa: E302
def __init__(self, compresslevel: int = 3): ...
def compress(self, inp: bytes) -> bytes: ...
def flush(self) -> bytes: ...
class ZSTDDecompressor: # noqa: E302
def __init__(self): ...
def decompress(self, data: bytes, max_length: int = -1) -> bytes: ...
@property
def eof(self) -> bool: ...
@property
def unused_data(self) -> bytes: ...
@property
def needs_input(self) -> bool: ...