Provides support for writing lists of packed 12-bit key indexes.
More...
Provides support for writing lists of packed 12-bit key indexes.
◆ packed_index_list_size()
uint32_t packed_index_list_size |
( |
uint16_t |
index_count | ) |
|
Calculates the size of a packed index list.
- Parameters
-
[in] | index_count | Number of indexes that the list will contain. |
- Returns
- The size in bytes of the packed index list with the specified number of indexes.
◆ packed_index_list_create()
void packed_index_list_create |
( |
const uint16_t *restrict |
p_index_list, |
|
|
uint8_t *restrict |
p_packed_list, |
|
|
uint16_t |
index_count |
|
) |
| |
Creates a packed index list.
- Parameters
-
[in] | p_index_list | List of indexes to pack into the output list. |
[out] | p_packed_list | Pointer to the start of a buffer where the packed index list is written. The size that this buffer must have can be obtained by calling packed_index_list_size(). |
[in] | index_count | Number of indexes to store in the packed index list. |