[][src]Type Definition evmc_sys::evmc_get_code_size_fn

type evmc_get_code_size_fn = Option<unsafe extern "C" fn(context: *mut evmc_host_context, address: *const evmc_address) -> usize>;

Get code size callback function.

This callback function is used by a VM to get the size of the code stored in the account at the given address.

@param context The pointer to the Host execution context. @param address The address of the account. @return The size of the code in the account or 0 if the account does not exist.