Set or delete a parameter on a hook on the same account further down the execution chain
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
and
The parameter value indicated by read_ptr
C
C
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)
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