예제 #1
0
파일: blob.py 프로젝트: wdv4758h/capnpy
 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)
예제 #2
0
 def _print(self, **kwds):
     p = BufferPrinter(self.buf)
     p.printbuf(start=0, end=None, **kwds)
예제 #3
0
 def _print_buf(self, **kwds):
     p = BufferPrinter(self.build())
     p.printbuf(**kwds)