Closed ayushkarnawat closed 4 years ago
The bytearray.zfill(N) function creates a copy of the array filled with zeroes to N bytes. The source array remains unchanged. See: https://docs.python.org/3.6/library/stdtypes.html#str.zfill
bytearray.zfill(N)
N
With this change, the datum_bytes is reset to the extended array, effectively making the buffer size 1.5x greater than the required number of bytes needed to read the record.
datum_bytes
Description
The
bytearray.zfill(N)
function creates a copy of the array filled with zeroes toN
bytes. The source array remains unchanged. See: https://docs.python.org/3.6/library/stdtypes.html#str.zfillWith this change, the
datum_bytes
is reset to the extended array, effectively making the buffer size 1.5x greater than the required number of bytes needed to read the record.Changes
datum_bytes