pub unsafe extern "C" fn otPlatMessagePoolNew(
    aInstance: *mut otInstance
) -> *mut otMessageBuffer
Expand description

Allocate a buffer from the platform managed buffer pool.

Is used when OPENTHREAD_CONFIG_PLATFORM_MESSAGE_MANAGEMENT is enabled.

The returned buffer instance MUST have at least aBufferSize bytes (as specified in otPlatMessagePoolInit()).

@param[in] aInstance A pointer to the OpenThread instance.

@returns A pointer to the buffer or NULL if no buffers are available.