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

Method pack

Lib/test/test_os/test_os.py:3927–3930  ·  view source on GitHub ↗

Pack as native uint64_t

(value)

Source from the content-addressed store, hash-verified

3925class EventfdTests(unittest.TestCase):
3926 def test_eventfd_initval(self):
3927 def pack(value):
3928 """Pack as native uint64_t
3929 """
3930 return struct.pack("@Q", value)
3931 size = 8 # read/write 8 bytes
3932 initval = 42
3933 fd = os.eventfd(initval)

Callers 15

__init__Method · 0.45
testFunction · 0.45
__init__Method · 0.45
_testFunction · 0.45
__init__Method · 0.45
__init__Method · 0.45
buttonboxMethod · 0.45
testFunction · 0.45
font.pyFile · 0.45
__init__Method · 0.45
exampleFunction · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected