[][src]Function mynewt::kernel::os::os_mbuf_appendfrom

pub unsafe extern "C" fn os_mbuf_appendfrom(
    dst: *mut os_mbuf,
    src: *const os_mbuf,
    src_off: u16,
    len: u16
) -> c_int

Reads data from one mbuf and appends it to another. On error, the specified data range may be partially appended. Neither mbuf is required to contain an mbuf packet header.

Return: 0 on success; OS_EINVAL if the specified range extends beyond the end of the source mbuf chain.