riot_sys

Function iolist_to_buffer

Source
pub unsafe extern "C" fn iolist_to_buffer(
    iolist: *const iolist_t,
    dst: *mut c_void,
    len: size_t,
) -> ssize_t
Expand description

@brief Copies the bytes of the iolist to a buffer

@param[in] iolist iolist to read from @param[out] dst Destination buffer @param[in] len Size of the destination buffer

@returns iolist_size(iolist) on success -ENOBUFS if the buffer is too small