def _print_buf(self, start=None, end='auto', **kwds): if start is None: start = self._data_offset if end == 'auto': end = self._get_body_end() elif end is None: end = len(self._seg.buf) p = BufferPrinter(self._seg.buf) p.printbuf(start=start, end=end, **kwds)
def _print(self, **kwds): p = BufferPrinter(self.buf) p.printbuf(start=0, end=None, **kwds)
def _print_buf(self, **kwds): p = BufferPrinter(self.build()) p.printbuf(**kwds)