riot_sys::bindgen

Function iolist_to_iovec

Source
pub unsafe extern "C" fn iolist_to_iovec(
    iolist: *const iolist_t,
    iov: *mut iovec,
    count: *mut c_uint,
) -> size_t
Expand description

@brief Create struct iovec from iolist

This function fills an array of struct iovecs with the contents of @p iolist. It will write the number of used array entries into @p count.

The caller must ensure that @p iov p points to an array of size >= count!

@param[in] iolist iolist to read from @param[out] iov ptr to array of struct iovec that will be filled @param[out] count number of elements in @p iolist

@returns iolist_size(iolist)