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

Function _pack_uint32

Lib/importlib/_bootstrap_external.py:79–81  ·  view source on GitHub ↗

Convert a 32-bit integer to little-endian.

(x)

Source from the content-addressed store, hash-verified

77
78
79def _pack_uint32(x):
80 """Convert a 32-bit integer to little-endian."""
81 return (int(x) & 0xFFFFFFFF).to_bytes(4, 'little')
82
83
84def _unpack_uint64(data):

Callers 2

_code_to_timestamp_pycFunction · 0.85
_code_to_hash_pycFunction · 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…