[][src]Function casperlabs_contract::ext_ffi::get_named_arg_size

pub unsafe extern "C" fn get_named_arg_size(
    name_ptr: *const u8,
    name_size: usize,
    dest_size: *mut usize
) -> i32

This function queries the host side to check for given named argument existence and returns a size in bytes of given argument. Returns zero for success or non-zero value for failure as described in standard error codes.

Arguments

  • name_ptr - pointer (offset in wasm memory) to the location where serialized argument name is present
  • name_size - size of serialized bytes of argument name
  • dest_ptr - pointer to the location where argument bytes will be copied from the host side
  • dest_size - size of destination pointer