Lines Matching refs:BLOCKSIZE
78 BLOCKSIZE = 512 # length of processing blocks variable
79 RECORDSIZE = BLOCKSIZE * 20 # length of records
587 self.buf = self.fileobj.read(BLOCKSIZE)
943 buf = struct.pack("%ds" % BLOCKSIZE, b"".join(parts))
944 chksum = calc_chksums(buf[-BLOCKSIZE:])[0]
953 blocks, remainder = divmod(len(payload), BLOCKSIZE)
955 payload += (BLOCKSIZE - remainder) * NUL
1032 if len(buf) != BLOCKSIZE:
1034 if buf.count(NUL) == BLOCKSIZE:
1094 buf = tarfile.fileobj.read(BLOCKSIZE)
1096 obj.offset = tarfile.fileobj.tell() - BLOCKSIZE
1171 buf = tarfile.fileobj.read(BLOCKSIZE)
1314 buf = tarfile.fileobj.read(BLOCKSIZE)
1319 buf += tarfile.fileobj.read(BLOCKSIZE)
1360 blocks, remainder = divmod(count, BLOCKSIZE)
1363 return blocks * BLOCKSIZE
1735 self.fileobj.write(NUL * (BLOCKSIZE * 2))
1736 self.offset += (BLOCKSIZE * 2)
1973 blocks, remainder = divmod(tarinfo.size, BLOCKSIZE)
1975 self.fileobj.write(NUL * (BLOCKSIZE - remainder))
1977 self.offset += blocks * BLOCKSIZE
2293 self.offset += BLOCKSIZE
2298 self.offset += BLOCKSIZE