MCPcopy Index your code
hub / github.com/aws/aws-cli / _handle_break_code

Method _handle_break_code

awscli/botocore/parsers.py:958–961  ·  view source on GitHub ↗
(self, stream)

Source from the content-addressed store, hash-verified

956 # the break code, it advances past that byte and returns True so the calling
957 # method knows to stop parsing that data item.
958 def _handle_break_code(self, stream):
959 if int.from_bytes(stream.peek(1)[:1], 'big') == self.BREAK_CODE:
960 stream.seek(1, os.SEEK_CUR)
961 return True
962
963 def _read_bytes_as_int(self, stream, num_bytes):
964 byte = self._read_from_stream(stream, num_bytes)

Callers 3

_parse_byte_stringMethod · 0.95
_parse_arrayMethod · 0.95
_parse_mapMethod · 0.95

Calls 1

seekMethod · 0.45

Tested by

no test coverage detected