Function randomx_bindings_sys::randomx_get_dataset_memory[][src]

pub unsafe extern "C" fn randomx_get_dataset_memory(
    dataset: *mut randomx_dataset
) -> *mut c_void
Expand description

Returns a pointer to the internal memory buffer of the dataset structure. The size of the internal memory buffer is randomx_dataset_item_count() * RANDOMX_DATASET_ITEM_SIZE.

@param dataset is a pointer to a previously allocated randomx_dataset structure. Must not be NULL.

@return Pointer to the internal memory buffer of the dataset structure.