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

Function lean_string_utf8_byte_size

src/string.rs:63–65  ·  view source on GitHub ↗
(s: b_lean_obj_arg)

Source from the content-addressed store, hash-verified

61
62#[inline(always)]
63pub unsafe fn lean_string_utf8_byte_size(s: b_lean_obj_arg) -> lean_obj_res {
64 lean_box(lean_string_size(s) - 1)
65}
66
67#[inline]
68pub unsafe fn lean_string_eq(s1: b_lean_obj_arg, s2: b_lean_obj_arg) -> bool {

Callers

nothing calls this directly

Calls 2

lean_boxFunction · 0.85
lean_string_sizeFunction · 0.85

Tested by

no test coverage detected