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

Lines Matching refs:dec_flags

1522     # self._snapshot is either None, or a tuple (dec_flags, next_input)
1523 # where dec_flags is the second (integer) item of the decoder state
1668 dec_buffer, dec_flags = self._decoder.getstate()
1670 # len(dec_buffer) bytes ago with decoder state (b'', dec_flags).
1680 self._snapshot = (dec_flags, dec_buffer + input_chunk)
1684 def _pack_cookie(self, position, dec_flags=0,
1687 # decoder flags to dec_flags, read bytes_to_feed bytes, feed them
1691 return (position | (dec_flags<<64) | (bytes_to_feed<<128) |
1696 rest, dec_flags = divmod(rest, 1<<64)
1699 return position, dec_flags, bytes_to_feed, need_eof, chars_to_skip
1716 dec_flags, next_input = self._snapshot
1723 return self._pack_cookie(position, dec_flags)
1730 decoder.setstate((b'', dec_flags))
1732 start_flags, bytes_fed, chars_decoded = dec_flags, 0, 0
1742 dec_buffer, dec_flags = decoder.getstate()
1747 start_flags, bytes_fed, chars_decoded = dec_flags, 0, 0
1808 start_pos, dec_flags, bytes_to_feed, need_eof, chars_to_skip = \
1819 elif self._decoder or dec_flags or chars_to_skip:
1821 self._decoder.setstate((b'', dec_flags))
1822 self._snapshot = (dec_flags, b'')
1829 self._snapshot = (dec_flags, input_chunk)