Function util_raddr

Source
pub unsafe extern "C" fn util_raddr(
    write_ptr: u32,
    write_len: u32,
    read_ptr: u32,
    read_len: u32,
) -> i64
Expand description

Read a 20 byte account-id from the memory pointed to by read_ptr of length read_len and encode it to a base58-check encoded r-address. @param read_ptr The memory address of the account-id @param read_len The byte length of the account-id (should always be 20) @param write_ptr The memory address of a suitable buffer to write the encoded r-address into. @param write_len The size of the write buffer. @return On success the length of the r-address will be returned indicating the bytes written to the write buffer. On failure a negative integer is returned indicating what went wrong.