MCPcopy Index your code
hub / github.com/python/cpython / _unpack_uint16

Function _unpack_uint16

Lib/importlib/_bootstrap_external.py:94–97  ·  view source on GitHub ↗

Convert 2 bytes in little-endian to an integer.

(data)

Source from the content-addressed store, hash-verified

92 return int.from_bytes(data, 'little')
93
94def _unpack_uint16(data):
95 """Convert 2 bytes in little-endian to an integer."""
96 assert len(data) == 2
97 return int.from_bytes(data, 'little')
98
99
100if _MS_WINDOWS:

Callers 2

_read_directoryFunction · 0.85
_get_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…