riot_sys::bindgen

Function isrpipe_write

Source
pub unsafe extern "C" fn isrpipe_write(
    isrpipe: *mut isrpipe_t,
    buf: *const u8,
    n: size_t,
) -> c_int
Expand description

@brief Put number of bytes into the isrpipe’s buffer

@param[in] isrpipe isrpipe object to operate on @param[in] buf bytes to add to isrpipe buffer @param[in] n number of bytes to add from buf to isrpipe’s buffer

@returns number of bytes that could be added @returns -1 if buffer was full