Function randomx_bindings_sys::randomx_alloc_dataset [−][src]
pub unsafe extern "C" fn randomx_alloc_dataset(
flags: randomx_flags
) -> *mut randomx_dataset
Expand description
Creates a randomx_dataset structure and allocates memory for RandomX Dataset.
@param flags is the initialization flags. Only one flag is supported (can be set or not set): RANDOMX_FLAG_LARGE_PAGES - allocate memory in large pages
@return Pointer to an allocated randomx_dataset structure. NULL is returned if memory allocation fails.