11.12.3.4.5. Function iot_agent_datastore_allocate

11.12.3.4.5.1. Function Documentation

iot_agent_status_t iot_agent_datastore_allocate(iot_agent_datastore_t *datastore, size_t len)

Allocate memory in a datastore.

Reserve memory in a datastore that can be written to by subsequent writes.

If the memory allocation fails, this function does not return IOT_AGENT_SUCCESS.