More tools.

This commit is contained in:
2018-10-17 18:27:16 +02:00
parent 701966277f
commit da211328d3
10 changed files with 145 additions and 31 deletions

View File

@@ -10,7 +10,7 @@ class ChkSum:
self.chksum += sum(bytearray(data))
self.last_byte = data[-1]
self.chksum &= 0xff
def add_from_file(self, filename: str, print_progress: bool = False, blocksize: int=16384):
with open(filename, "rb") as f:
while True: