#[unsafe(no_mangle)]pub unsafe extern "C" fn nstd_fs_file_read(
file: &mut NSTDFile,
buffer: &mut NSTDSliceMut,
) -> NSTDIOResultAvailable on crate feature
fs only.Expand description
Reads some data from an open file into a buffer.
§Parameters:
-
NSTDFile *file- A handle to the opened file. -
NSTDSliceMut *buffer- The buffer to start filling with data from the file.
§Returns
NSTDIOResult read - The number of bytes read from handle on success, or the I/O operation
error code on failure.
§Safety
buffer’s data must be valid for writes.