mirror of https://github.com/zeldaret/tp
fix yaz0.py (#2022)
This commit is contained in:
parent
d5d59471ea
commit
f5bf24c77e
|
|
@ -20,7 +20,7 @@ def decompress(data):
|
|||
return bytearray(decompressedDataBuffer)[:-1]
|
||||
|
||||
def compress(data):
|
||||
decompresseddDataBuffer = ctypes.c_buffer(data)
|
||||
decompresseddDataBuffer = ctypes.c_buffer(bytes(data))
|
||||
compressedDataBuffer = ctypes.c_buffer(bytes(len(data)*2))
|
||||
encode = _yaz0lib.yaz0_encode
|
||||
encode.argtypes = [ctypes.c_char_p,ctypes.c_char_p,ctypes.c_int]
|
||||
|
|
|
|||
Loading…
Reference in New Issue