CYAML Internals
|
CYAML functions for manipulating client data structures. More...
Go to the source code of this file.
Functions | |
static cyaml_err_t | cyaml_data_write (uint64_t value, uint64_t entry_size, uint8_t *data_tgt) |
static void | cyaml_data_write_pointer (const void *ptr, uint8_t *data_target) |
static uint64_t | cyaml_data_read (uint64_t entry_size, const uint8_t *data, cyaml_err_t *error_out) |
static uint8_t * | cyaml_data_read_pointer (const uint8_t *data) |
CYAML functions for manipulating client data structures.
|
inlinestatic |
Read a value of up to eight bytes from data.
[in] | entry_size | The number of bytes to read. |
[in] | data | The address to read from. |
[out] | error_out | Returns the error code. CYAML_OK on success, or appropriate error otherwise. |
|
inlinestatic |
Read a pointer from data.
This is a wrapper for cyaml_data_read that does a compile time assertion on the pointer size, so it can never return a runtime error.
[in] | data | The address to read from. |
|
inlinestatic |
Write a value of up to eight bytes to data_target.
[in] | value | The value to write. |
[in] | entry_size | The number of bytes of value to write. |
[in] | data_tgt | The address to write to. |
|
inlinestatic |
Write a pointer to data.
This is a wrapper for cyaml_data_write that does a compile time assertion on the pointer size, so it can never return a runtime error.
[in] | ptr | The pointer address to write. |
[in] | data_target | The address to write to. |