MCPcopy
hub / github.com/commaai/openpilot / read_bytes

Method read_bytes

system/ubloxd/binary_struct.py:131–136  ·  view source on GitHub ↗
(self, n: int)

Source from the content-addressed store, hash-verified

129 return value
130
131 def read_bytes(self, n: int) -> bytes:
132 self._align_to_byte()
133 self._require(n)
134 result = self.data[self.pos : self.pos + n]
135 self.pos += n
136 return result
137
138 def read_bits_int_be(self, n: int) -> int:
139 result = 0

Callers 5

_process_fontFunction · 0.80
fetch_fwFunction · 0.80
_parse_fieldFunction · 0.80
_load_emoji_fontFunction · 0.80
read_file_chunkedFunction · 0.80

Calls 2

_align_to_byteMethod · 0.95
_requireMethod · 0.95

Tested by

no test coverage detected