struct os_mbuf * ble_hs_mbuf_from_flat( const void *buf, uint16_t len )
Allocates a an mbuf and fills it with the contents of the specified flat buffer.
Parameter | Description |
---|---|
buf | The flat buffer to copy from. |
len | The length of the flat buffer. |
Value | Condition |
---|---|
A newly-allocated mbuf | Success. |
NULL | Memory exhaustion. |