code wiki / (root) / _offc_outbuf_a.nx

_offc_outbuf_a.nx source

↩ module page · 7 lines · 198 B

1// outbuf_a: just call out_new + return o.cap (read of field). 2import "syscalls.nx" 3import "outbuf.nx" 4func main() -> i64 { 5 let o: *OutBuf = out_new(33) 6 return o.cap // expect 33 7}