Lines Matching full:blocks
68 BLOCKSIZE = 512 # length of processing blocks
270 blocks, remainder = divmod(length, BUFSIZE)
271 for b in xrange(blocks):
551 blocks, remainder = divmod(pos - self.pos, self.bufsize)
552 for i in xrange(blocks):
989 """Return a tar header as a string of 512 byte blocks.
1134 blocks, remainder = divmod(len(payload), BLOCKSIZE)
1152 # create extended header + name blocks.
1184 # Create pax header + record blocks.
1250 # 1. Set self.offset_data to the position where the data blocks begin,
1275 # Skip the following data blocks.
1286 """Process the blocks that hold a GNU longname
1448 blocks, remainder = divmod(count, BLOCKSIZE)
1450 blocks += 1
1451 return blocks * BLOCKSIZE
1484 ignore_zeros = False # If true, skips empty or invalid blocks and
1641 'r|*' open a stream of tar blocks with transparent compression
1642 'r|' open an uncompressed stream of tar blocks for reading
1643 'r|gz' open a gzip compressed stream of tar blocks
1644 'r|bz2' open a bzip2 compressed stream of tar blocks
1769 """Close the TarFile. In write-mode, two finishing zero blocks are
1778 # fill up the end with zero-blocks
1780 blocks, remainder = divmod(self.offset, RECORDSIZE)
2021 blocks, remainder = divmod(tarinfo.size, BLOCKSIZE)
2024 blocks += 1
2025 self.offset += blocks * BLOCKSIZE
2127 # stream of tar blocks.
2436 # it would try to write end-of-archive blocks and padding.