Structs§
Constants§
- RANDOMX_
DATASET_ ITEM_ SIZE - RANDOMX_
HASH_ SIZE - randomx_
flags_ RANDOMX_ FLAG_ DEFAULT - randomx_
flags_ RANDOMX_ FLAG_ FULL_ MEM - randomx_
flags_ RANDOMX_ FLAG_ HARD_ AES - randomx_
flags_ RANDOMX_ FLAG_ JIT - randomx_
flags_ RANDOMX_ FLAG_ LARGE_ PAGES - randomx_
flags_ RANDOMX_ FLAG_ SECURE
Functions§
- randomx_
alloc_ ⚠cache - Creates a randomx_cache structure and allocates memory for RandomX Cache.
- randomx_
alloc_ ⚠dataset - Creates a randomx_dataset structure and allocates memory for RandomX Dataset.
- randomx_
calculate_ ⚠hash - Calculates a RandomX hash value.
- randomx_
create_ ⚠vm - Creates and initializes a RandomX virtual machine.
- randomx_
dataset_ ⚠item_ count - Gets the number of items contained in the dataset.
- randomx_
destroy_ ⚠vm - Releases all memory occupied by the randomx_vm structure.
- randomx_
get_ ⚠dataset_ memory - 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.
- randomx_
init_ ⚠cache - Initializes the cache memory and SuperscalarHash using the provided key value.
- randomx_
init_ ⚠dataset - Initializes dataset items.
- randomx_
release_ ⚠cache - Releases all memory occupied by the randomx_cache structure.
- randomx_
release_ ⚠dataset - Releases all memory occupied by the randomx_dataset structure.
- randomx_
vm_ ⚠set_ cache - Reinitializes a virtual machine with a new Cache. This function should be called anytime the Cache is reinitialized with a new key.
- randomx_
vm_ ⚠set_ dataset - Reinitializes a virtual machine with a new Dataset.