Function randomx_bindings_sys::randomx_vm_set_dataset[][src]

pub unsafe extern "C" fn randomx_vm_set_dataset(
    machine: *mut randomx_vm,
    dataset: *mut randomx_dataset
)
Expand description

Reinitializes a virtual machine with a new Dataset.

@param machine is a pointer to a randomx_vm structure that was initialized with RANDOMX_FLAG_FULL_MEM. Must not be NULL. @param dataset is a pointer to an initialized randomx_dataset structure. Must not be NULL.