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

Function lean_ctor_get_uint8

lean_py/_runtime.py:493–495  ·  view source on GitHub ↗
(self, o, byte_offset)

Source from the content-addressed store, hash-verified

491 return ctypes.addressof(ctor.contents) + ctor_cls.m_objs.offset + byte_offset
492
493 def lean_ctor_get_uint8(self, o, byte_offset):
494 addr = self.lean_ctor_scalar_addr(o, byte_offset)
495 return ctypes.cast(addr, POINTER(c_uint8)).contents.value
496
497 def lean_ctor_set_uint8(self, o, byte_offset, val):
498 addr = self.lean_ctor_scalar_addr(o, byte_offset)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected