()
| 5 | |
| 6 | def _lean_string_to_py(ffi, ptr) -> str: |
| 7 | """Decode a Lean string object into a Python str via the safe ffi path.""" |
| 8 | size = ffi.lean_string_size(ptr) |
| 9 | if size <= 1: |
| 10 | return "" |
| 11 | cstr = ffi.lean_string_cstr(ptr) |
| 12 | raw = cstr.value if isinstance(cstr, ctypes.c_char_p) else cstr |
nothing calls this directly
no test coverage detected