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

Function lean_string_byte_size

src/string.rs:21–23  ·  view source on GitHub ↗
(o: *mut lean_object)

Source from the content-addressed store, hash-verified

19
20#[inline(always)]
21pub unsafe fn lean_string_byte_size(o: *mut lean_object) -> usize {
22 core::mem::size_of::<lean_string_object>() + lean_string_capacity(o)
23}
24
25/** instance : inhabited char := ⟨'A'⟩ */
26#[inline(always)]

Callers

nothing calls this directly

Calls 1

lean_string_capacityFunction · 0.85

Tested by

no test coverage detected