Typedef anj_persistence_read_cb_t

Typedef Documentation

typedef int anj_persistence_read_cb_t(void *ctx, void *buf, size_t size)

Read callback type. Implementations must read exactly size bytes into buf.

Param ctx:

User context provided at context creation.

Param buf:

[out] Destination buffer.

Param size:

Number of bytes to read.

Return:

0 on success, negative value on error.