> home > Custom Layer Boundary API

set_custom_hook_memory_size

September 8th 2024
Set the memory size for the extra memory used to store the state of certain hooks

Signature

C++
b32
set_custom_hook_memory_size(Application_Links* app,
                            Hook_ID hook_id,
                            u64 size);

Parameters

app

the standard custom layer context pointer

hook_id

the id of the hook to be modified

size

the size in bytes of the memory set aside for the state of the specified hook

Return

non-zero when the hook id is valid and accepts extra memory size, otherwise zero

Related

view_current_context_hook_memory