MCPcopy Create free account
hub / github.com/BasisResearch/lean.py / lean_box_uint64

Function lean_box_uint64

lean_py/_runtime.py:581–590  ·  view source on GitHub ↗
(self, v)

Source from the content-addressed store, hash-verified

579
580 # ----- Numeric conversions (inline in lean.h) -----
581 def lean_box_uint64(self, v):
582 # Boxed uint64: small object holding the 64-bit value.
583 # Use the exported lean_box_uint64 if present.
584 fn = getattr(self.lib, "lean_box_uint64", None)
585 if fn is not None:
586 fn.argtypes = [c_uint64]
587 fn.restype = LeanObjectPtr
588 return fn(v)
589 # Fallback: scalar tagged pointer (only valid for small values).
590 return self.lean_box(v)
591
592 def lean_unbox_uint64(self, o):
593 fn = getattr(self.lib, "lean_unbox_uint64", None)

Callers 1

leanpy_box_uint64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected