11.12.3.4.9. Function iot_agent_datastore_read

11.12.3.4.9.1. Function Documentation

iot_agent_status_t iot_agent_datastore_read(iot_agent_datastore_t *datastore, void *dst, size_t offset, size_t *len)

Read from a datastore to a buffer in memory.

Starting at position offset, len bytes are read from the datastore and copied to the memory pointed to by dst.

If the datastore does not hold len bytes or the read would be out of bounds, only as many bytes as available are read.

len is updated to hold the number of bytes that actually were read from the datastore.

No length checks on dst are performed, the caller is responsible that the memory location is writeable and can hold len bytes.