Lines Matching refs:next
524 """Return the next size number of bytes from the stream."""
1145 up to the next 512 byte border.
1285 """Return the next TarInfo object from TarFile object
1301 # 2. Set tarfile.offset to the position where the next member's header will
1345 # Fetch the next header and process it.
1347 next = self.fromtarfile(tarfile)
1351 # Patch the TarInfo object from the next header with
1353 next.offset = self.offset
1355 next.name = nts(buf, tarfile.encoding, tarfile.errors)
1357 next.linkname = nts(buf, tarfile.encoding, tarfile.errors)
1361 if next.isdir():
1362 next.name = next.name.removesuffix("/")
1364 return next
1480 # Fetch the next header.
1482 next = self.fromtarfile(tarfile)
1489 self._proc_gnusparse_01(next, pax_headers)
1493 self._proc_gnusparse_00(next, raw_headers)
1497 self._proc_gnusparse_10(next, pax_headers, tarfile)
1501 next._apply_pax_info(pax_headers, tarfile.encoding, tarfile.errors)
1502 next.offset = self.offset
1506 # we need to recalculate the offset where the next
1508 offset = next.offset_data
1509 if next.isreg() or next.type not in SUPPORTED_TYPES:
1510 offset += next._block(next.size)
1513 return next
1515 def _proc_gnusparse_00(self, next, raw_headers):
1533 next.sparse = list(zip(offsets, numbytes))
1535 def _proc_gnusparse_01(self, next, pax_headers):
1539 next.sparse = list(zip(sparse[::2], sparse[1::2]))
1541 def _proc_gnusparse_10(self, next, pax_headers, tarfile):
1554 next.offset_data = tarfile.fileobj.tell()
1555 next.sparse = list(zip(sparse[::2], sparse[1::2]))
1736 self.firstmember = self.next()
2603 def next(self):
2604 """Return the next member of the archive as a TarInfo object, when
2622 # Read the next block.
2713 tarinfo = self.next()
2753 # Yield items using TarFile's next() method.
2758 # which will have already exhausted the next() method.
2760 tarinfo = self.next()
2768 tarinfo = self.next()