hook_param_set
Set or delete a parameter on a hook on the same account further down the execution chain
Behaviour
Search the hook chain on the hook account for a 32 byte hash indicated by
hread_ptr
If found: set a parameter:
With the parameter name indicated by
kread_ptr
andThe parameter value indicated by
read_ptr
Definition
C
Example
C
Parameters
read_ptr
uint32_t
Pointer to parameter value
read_len
uint32_t
Length of the parameter value
kread_ptr
uint32_t
Pointer to the parameter name
kread_len
uint32_t
Length of the parameter name
hread_ptr
uint32_t
Pointer to hook hash
hread_len
uint32_t
Length of hook hash (always 32)
Return Code
int64_t
The length of the parameter value successfully set
If negative, an error:
OUT_OF_BOUNDS
- pointers/lengths specified outside of hook memory.
TOO_SMALL
- The parameter name can't be null
TOO_BIG
- The parameter name is greater than 32 bytes
Last updated