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

Function lean_sarray_data_byte_size

src/sarray/mod.rs:42–44  ·  view source on GitHub ↗
(o: *const lean_object)

Source from the content-addressed store, hash-verified

40
41#[inline(always)]
42pub unsafe fn lean_sarray_data_byte_size(o: *const lean_object) -> usize {
43 size_of::<lean_sarray_object>() + lean_sarray_elem_size(o) as usize * lean_sarray_size(o)
44}
45
46#[inline(always)]
47pub unsafe fn lean_sarray_set_size(o: u_lean_obj_arg, sz: usize) {

Callers

nothing calls this directly

Calls 2

lean_sarray_elem_sizeFunction · 0.85
lean_sarray_sizeFunction · 0.85

Tested by

no test coverage detected