Function randomx_vm_set_cache

Source
pub unsafe extern "C" fn randomx_vm_set_cache(
    machine: *mut randomx_vm,
    cache: *mut randomx_cache,
)
Expand description

Reinitializes a virtual machine with a new Cache. This function should be called anytime the Cache is reinitialized with a new key. Does nothing if called with a Cache containing the same key value as already set.

      @param machine is a pointer to a randomx_vm structure that was initialized
             without RANDOMX_FLAG_FULL_MEM. Must not be NULL.
      @param cache is a pointer to an initialized randomx_cache structure. Must not be NULL.