ble_hs_mbuf_from_flat

struct os_mbuf *
ble_hs_mbuf_from_flat(
    const void *buf,
      uint16_t  len
)

Description

Allocates a an mbuf and fills it with the contents of the specified flat buffer.

Parameters

ParameterDescription
bufThe flat buffer to copy from.
lenThe length of the flat buffer.

Returned values

ValueCondition
A newly-allocated mbufSuccess.
NULLMemory exhaustion.