MCPcopy Create free account
hub / github.com/Ruddle/Fomos / _start

Function _start

app_test/src/main.rs:36–53  ·  view source on GitHub ↗
(ctx: &mut Context)

Source from the content-addressed store, hash-verified

34
35#[no_mangle]
36pub extern "C" fn _start(ctx: &mut Context) -> i32 {
37 ctx.version += 1;
38
39 let mut txt = [0; TEXT.len()];
40 let m = &mut txt;
41 m.copy_from_slice(TEXT.as_bytes());
42 m[m.len() - 1] = '0' as u8 + ctx.pid as u8;
43
44 let s = unsafe { core::str::from_utf8_unchecked(&txt) };
45 (ctx.log)(s.as_ptr(), s.len() as u32);
46
47 //make thinks blue
48 // for px in ctx.fb.pixels.iter_mut() {
49 // px.b = 255;
50 // }
51
52 return 0;
53}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected