Beispiel #1
0
 def unpack_data(self, s):
     props = getbytes(s, 5)
     data = getbytes(s, self.compressed_size)
     alone_data = props + pack("Q", self.uncompressed_size) + data
     unpacked = decompress(alone_data, FORMAT_ALONE)
     return unpacked
Beispiel #2
0
 def unpack_data(self, s):
     props = getbytes(s, 5)
     data = getbytes(s, self.compressed_size)
     alone_data = props + pack("Q", self.uncompressed_size) + data
     unpacked = decompress(alone_data, FORMAT_ALONE)
     return unpacked
Beispiel #3
0
 def unpack_data(self, s):
     self.prefix.unpack(s)
     data = getbytes(s, self.prefix.data)
     data = data.decode()
     return data