carray_to_list¶
- globalmapper.carray_to_list(uint32 arr, uint32 size) list [source]¶
Converts a C-style array starting at memory address arr that is size members long into a Python-style list, and returns that list.
- Parameters:
arr (uint32) – The pointer to the start of the array
size (uint32) – The number of members in the array
- Returns:
A list form of the array that starts at arr
- Return type:
list
Example¶
The following is an example of carray_to_list.:
shader_list = gm.carray_to_list(shader_array, size)
For more context refer to the tutorial page on setting pointers.