Lines Matching refs:BLOCKSIZE
68 BLOCKSIZE = 512 # length of processing blocks variable
69 RECORDSIZE = BLOCKSIZE * 20 # length of records
629 self.buf = self.fileobj.read(BLOCKSIZE)
1136 buf = struct.pack("%ds" % BLOCKSIZE, "".join(parts))
1137 chksum = calc_chksums(buf[-BLOCKSIZE:])[0]
1146 blocks, remainder = divmod(len(payload), BLOCKSIZE)
1148 payload += (BLOCKSIZE - remainder) * NUL
1206 if len(buf) != BLOCKSIZE:
1208 if buf.count(NUL) == BLOCKSIZE:
1251 buf = tarfile.fileobj.read(BLOCKSIZE)
1253 obj.offset = tarfile.fileobj.tell() - BLOCKSIZE
1348 buf = tarfile.fileobj.read(BLOCKSIZE)
1460 blocks, remainder = divmod(count, BLOCKSIZE)
1463 return blocks * BLOCKSIZE
1810 self.fileobj.write(NUL * (BLOCKSIZE * 2))
1811 self.offset += (BLOCKSIZE * 2)
2055 blocks, remainder = divmod(tarinfo.size, BLOCKSIZE)
2057 self.fileobj.write(NUL * (BLOCKSIZE - remainder))
2059 self.offset += blocks * BLOCKSIZE
2362 self.offset += BLOCKSIZE
2367 self.offset += BLOCKSIZE