-
Notifications
You must be signed in to change notification settings - Fork 3
MAP_get_ptr_arr
BigETI edited this page May 4, 2018
·
1 revision
Map get pointer (key[])
Pointer of the value, otherwise MEM_NULLPTR
Pointer:MAP_get_ptr_arr(Map:map, const key[], key_size = sizeof key)
new Map:map, arr[10] = { 100, ... }, Pointer:ptr;
MAP_insert_arr_str(map, arr, _, "This is a test.");
ptr = MAP_get_ptr_arr(map, arr);
if (ptr == MEM_NULLPTR)
{
print("Value not found.");
}
else
{
printf("Value pointer: 0x%x", _:ptr);
printf("Value size: %d", MEM_get_size(ptr));
}
- Home
- MAP_clear
- MAP_contains_arr
- MAP_contains_str
- MAP_contains_val
- MAP_count
- MAP_get_arr_arr
- MAP_get_arr_val
- MAP_get_ptr_arr
- MAP_get_ptr_str
- MAP_get_ptr_val
- MAP_get_str_arr
- MAP_get_str_val
- MAP_get_val_arr
- MAP_get_val_val
- MAP_insert_arr_arr
- MAP_insert_arr_str
- MAP_insert_arr_val
- MAP_insert_str_arr
- MAP_insert_str_str
- MAP_insert_str_val
- MAP_insert_val_arr
- MAP_insert_val_str
- MAP_insert_val_val
- MAP_iter_get
- MAP_iter_next
- MAP_remove_arr
- MAP_remove_str
- MAP_remove_val