[−][src]Function openthread_sys::otMessageRead
pub unsafe extern "C" fn otMessageRead(
aMessage: *const otMessage,
aOffset: u16,
aBuf: *mut c_void,
aLength: u16
) -> u16
Read bytes from 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 read to. @param[in] aLength Number of bytes to read.
@returns The number of bytes read.
@sa otMessageFree @sa otMessageAppend @sa otMessageGetLength @sa otMessageSetLength @sa otMessageGetOffset @sa otMessageSetOffset @sa otMessageWrite