ble_hs_mbuf_from_flat() function
Allocates an mbuf and fills it with the contents of the specified flat buffer.
Syntax
struct os_mbuf *ble_hs_mbuf_from_flat(const void *buf,
uint16_t len);
Arguments
buf
The flat buffer to copy from.
len
The length of the flat buffer.
Return value
A newly-allocated mbuf on success, NULL on error.
Examples
ble_hs_mbuf_from_flat() is referenced by 5 libraries and example projects: