AWS IoT Device SDK C:
Static Memory
Statically-allocated buffer pools
|
Return to main page ↑ |
Return an "in-use" buffer.
This function is common to the static memory implementation.
[in] | ptr | Pointer to the buffer to return. |
[in] | pPool | The pool of buffers that the in-use buffer was allocated from. |
[in] | pInUse | The "in-use" flags for pPool. |
[in] | limit | How many buffers (and flags) to check while searching for ptr. |
[in] | elementSize | The size of a single element in pPool. |
Example: