MCPcopy Create free account
hub / github.com/digama0/lean-sys / lean_string_get_byte_fast

Function lean_string_get_byte_fast

src/string.rs:100–104  ·  view source on GitHub ↗
(s: b_lean_obj_arg, i: b_lean_obj_arg)

Source from the content-addressed store, hash-verified

98
99#[inline(always)]
100pub unsafe fn lean_string_get_byte_fast(s: b_lean_obj_arg, i: b_lean_obj_arg) -> u8 {
101 let str = lean_string_cstr(s);
102 let idx = lean_unbox(i);
103 *str.add(idx)
104}
105
106#[inline(always)]
107pub unsafe fn lean_string_utf8_next_fast(s: b_lean_obj_arg, i: b_lean_obj_arg) -> lean_obj_res {

Callers

nothing calls this directly

Calls 2

lean_string_cstrFunction · 0.85
lean_unboxFunction · 0.85

Tested by

no test coverage detected