Function openthread_sys::otMessageWrite

source ยท
pub unsafe extern "C" fn otMessageWrite(
    aMessage: *mut otMessage,
    aOffset: u16,
    aBuf: *const c_void,
    aLength: u16,
) -> c_int
Expand description

Write bytes to a message.

@param[in] aMessage A pointer to a message buffer. @param[in] aOffset An offset in bytes. @param[in] aBuf A pointer to a buffer that message bytes are written from. @param[in] aLength Number of bytes to write.

@returns The number of bytes written.

@sa otMessageFree @sa otMessageAppend @sa otMessageGetLength @sa otMessageSetLength @sa otMessageGetOffset @sa otMessageSetOffset @sa otMessageRead