|
PatchworkOS
a7b3d61
A non-POSIX operating system.
|
Buffer Field. More...
Buffer Field.
Functions | |
| uint64_t | aml_buffer_field_load (aml_buffer_field_t *bufferField, aml_object_t *out) |
| Read the value stored in a BufferField and store it in the out object. | |
| uint64_t | aml_buffer_field_store (aml_buffer_field_t *bufferField, aml_object_t *in) |
| Write a value to a BufferField. | |
| uint64_t aml_buffer_field_load | ( | aml_buffer_field_t * | bufferField, |
| aml_object_t * | out | ||
| ) |
Read the value stored in a BufferField and store it in the out object.
A BufferField is a view into a buffer, it has a bit offset and a bit size, and can be used to read or write parts of the buffer.
| bufferField | The buffer field to read from. |
| out | Pointer to the buffer where the result will be stored, will be an integer or a buffer. |
0. On failure, ERR and errno is set. Definition at line 9 of file buffer_field.c.
| uint64_t aml_buffer_field_store | ( | aml_buffer_field_t * | bufferField, |
| aml_object_t * | in | ||
| ) |
Write a value to a BufferField.
A BufferField is a view into a buffer, it has a bit offset and a bit size, and can be used to read or write parts of the buffer.
| bufferField | The buffer field to write to. |
| in | Pointer to the object containing the value to write, must be an integer or a buffer. |
0. On failure, ERR and errno is set. Definition at line 62 of file buffer_field.c.