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

Function lean_byte_array_uset

src/sarray/byte.rs:44–53  ·  view source on GitHub ↗
(a: lean_obj_arg, i: usize, v: u8)

Source from the content-addressed store, hash-verified

42
43#[inline(always)]
44pub unsafe fn lean_byte_array_uset(a: lean_obj_arg, i: usize, v: u8) -> *mut lean_object {
45 let r = if lean_is_exclusive(a) {
46 a
47 } else {
48 lean_copy_byte_array(a)
49 };
50 let it = lean_sarray_cptr(r).add(i);
51 *it = v;
52 r
53}
54
55#[inline]
56pub unsafe fn lean_byte_array_set(a: lean_obj_arg, i: b_lean_obj_arg, v: u8) -> *mut lean_object {

Callers 2

lean_byte_array_setFunction · 0.85
lean_byte_array_fsetFunction · 0.85

Calls 2

lean_is_exclusiveFunction · 0.85
lean_sarray_cptrFunction · 0.85

Tested by

no test coverage detected