nstd_fs_file_write_all

Function nstd_fs_file_write_all 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn nstd_fs_file_write_all( file: &mut NSTDFile, bytes: &NSTDSlice, ) -> NSTDIOError
Available on crate feature fs only.
Expand description

Writes a whole buffer to a file.

§Parameters:

  • NSTDFile *file - A handle to an open file.

  • const NSTDSlice *bytes - The data to write to the file.

§Returns

NSTDIOError errc - The I/O operation error code.

§Safety

This function’s caller must guarantee validity of bytes.