MCPcopy Index your code
hub / github.com/RustPython/RustPython / pack

Method pack

Lib/test/test_os.py:4217–4220  ·  view source on GitHub ↗

Pack as native uint64_t

(value)

Source from the content-addressed store, hash-verified

4215class EventfdTests(unittest.TestCase):
4216 def test_eventfd_initval(self):
4217 def pack(value):
4218 """Pack as native uint64_t
4219 """
4220 return struct.pack("@Q", value)
4221 size = 8 # read/write 8 bytes
4222 initval = 42
4223 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