Convert a 20 byte Account ID to an r-address
Read a 20 byte Account ID from the read_ptr
Write the equivalent r-address for that Account ID to write_ptr
C
C
write_ptr
uint32_t
Pointer to a buffer of a suitable size to store the output r-address. Recommend at least 35 bytes.
write_len
uint32_t
Length of the output buffer.
read_ptr
uint32_t
Pointer to the Account ID.
read_len
uint32_t
The length of the input. Always 20.
int64_t
The number of bytes written (the length of the output r-address).
If negative, an error:
OUT_OF_BOUNDS
- pointers/lengths specified outside of hook memory.
INVALID_ARGUMENT
- read_len
was not 20.
TOO_SMALL
- write_len
was not large enough to store produced r-address in.