Parallel-NDJSON-Reader icon indicating copy to clipboard operation
Parallel-NDJSON-Reader copied to clipboard

Wrong total read bytes in chunk

Open andrewGIS opened this issue 1 year ago • 0 comments
trafficstars

You need to change count of reading bytes in chunk because some time len(str) != len(str in bytes)

So you need to change line total_len += len(line) to total_len += len(line.encode())

andrewGIS avatar Jun 29 '24 18:06 andrewGIS