Skip to main content

nova_rt_fs_take_string_array

Function nova_rt_fs_take_string_array 

Source
#[unsafe(no_mangle)]
pub extern "C" fn nova_rt_fs_take_string_array() -> *mut u8
Expand description

Take the array payload staged by a successful nova_rt_fs_read_dir.

Mirrors nova_rt_fs_take_string, with the one difference forced by there being no such thing as a null Nova array: an empty slot (0) yields a fresh, well-formed zero-length array here – the same { len: 0 } shape nova_rt_str_chars produces for an empty string – rather than a null pointer, which a correct wrapper would then have to null-check for no reason (a correct wrapper never asks for this when nothing is pending, exactly as nova_rt_fs_take_string’s own doc comment notes).