Skip to main content

nova_rt_io_stdin_read

Function nova_rt_io_stdin_read 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn nova_rt_io_stdin_read(max: i64) -> i64
Expand description

Read up to max bytes from stdin. An empty payload means end of stream.

A short read is not EOF: a terminal or pipe returns what is available. The Nova-level contract is stated in std/io’s Read::read.

§Safety

No pointer argument, so no dereference precondition; marked unsafe extern "C" for uniformity with this crate’s other JIT-registered symbols.