Home | History | Annotate | Download | only in python2.7

Lines Matching defs:BLOCKSIZE

68 BLOCKSIZE = 512                 # length of processing blocks
69 RECORDSIZE = BLOCKSIZE * 20 # length of records
623 self.buf = self.fileobj.read(BLOCKSIZE)
648 blocksize = 16 * 1024
670 raw = self.fileobj.read(self.blocksize)
785 blocksize = 1024
837 buf = self.fileobj.read(self.blocksize)
1124 buf = struct.pack("%ds" % BLOCKSIZE, "".join(parts))
1125 chksum = calc_chksums(buf[-BLOCKSIZE:])[0]
1134 blocks, remainder = divmod(len(payload), BLOCKSIZE)
1136 payload += (BLOCKSIZE - remainder) * NUL
1194 if len(buf) != BLOCKSIZE:
1196 if buf.count(NUL) == BLOCKSIZE:
1239 buf = tarfile.fileobj.read(BLOCKSIZE)
1241 obj.offset = tarfile.fileobj.tell() - BLOCKSIZE
1336 buf = tarfile.fileobj.read(BLOCKSIZE)
1445 """Round up a byte count by BLOCKSIZE and return it,
1448 blocks, remainder = divmod(count, BLOCKSIZE)
1451 return blocks * BLOCKSIZE
1776 self.fileobj.write(NUL * (BLOCKSIZE * 2))
1777 self.offset += (BLOCKSIZE * 2)
2021 blocks, remainder = divmod(tarinfo.size, BLOCKSIZE)
2023 self.fileobj.write(NUL * (BLOCKSIZE - remainder))
2025 self.offset += blocks * BLOCKSIZE
2323 self.offset += BLOCKSIZE
2328 self.offset += BLOCKSIZE