AWS IoT Device SDK C: Static Memory
Statically-allocated buffer pools
Return to main page ↑
Iot_MallocMessageBuffer

Get an empty message buffer.

void * Iot_MallocMessageBuffer( size_t size );

This function is the analog of malloc for message buffers.

Parameters
[in]sizeRequested size for a message buffer.
Returns
Pointer to the start of a message buffer. If the size argument is larger than the fixed size of a message buffer or no message buffers are available, NULL is returned.