Function riot_sys::vfs_read

source ·
pub unsafe extern "C" fn vfs_read(
    fd: c_int,
    dest: *mut c_void,
    count: size_t
) -> ssize_t
Expand description

@brief Read bytes from an open file

@param[in] fd fd number obtained from vfs_open @param[out] dest destination buffer to hold the file contents @param[in] count maximum number of bytes to read

@return number of bytes read on success @return <0 on error

For simple cases of only a single read from a file, the @ref vfs_file_to_buffer function can be used.