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

Function lean_mk_empty_byte_array

src/sarray/byte.rs:5–10  ·  view source on GitHub ↗
(capacity: b_lean_obj_arg)

Source from the content-addressed store, hash-verified

3
4#[inline]
5pub unsafe fn lean_mk_empty_byte_array(capacity: b_lean_obj_arg) -> lean_obj_res {
6 if !lean_is_scalar(capacity) {
7 lean_internal_panic_out_of_memory()
8 }
9 lean_alloc_sarray(1, 0, lean_unbox(capacity))
10}
11
12#[inline(always)]
13pub unsafe fn lean_byte_array_size(a: b_lean_obj_arg) -> lean_obj_res {

Callers

nothing calls this directly

Calls 3

lean_is_scalarFunction · 0.85
lean_alloc_sarrayFunction · 0.85
lean_unboxFunction · 0.85

Tested by

no test coverage detected