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

Function lean_array_size

lean_py/_runtime.py:525–528  ·  view source on GitHub ↗
(self, o)

Source from the content-addressed store, hash-verified

523 ctypes.cast(addr, POINTER(c_uint64))[0] = val
524
525 def lean_array_size(self, o):
526 arr_cls = structs.get("lean_array_object")
527 arr = ctypes.cast(o, POINTER(arr_cls))
528 return arr.contents.m_size
529
530 def lean_array_get_core(self, o, i):
531 arr_cls = structs.get("lean_array_object")

Callers 5

lean_py_of_listFunction · 0.85
lean_py_of_tupleFunction · 0.85
lean_py_of_dictFunction · 0.85
lean_py_callFunction · 0.85
lean_py_call_kwFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected