AWS IoT Device SDK C:
Static Memory
Statically-allocated buffer pools
|
Return to main page ↑ |
Find a free buffer using the "in-use" flags.
If a free buffer is found, this function marks the buffer in-use. This function is common to the static memory implementation.
[in] | pInUse | The "in-use" flags to search. |
[in] | limit | How many flags to check, i.e. the size of pInUse . |
-1
if no free buffers are available.Example: