[−][src]Crate randomx4r_sys
Structs
__fsid_t | |
max_align_t | |
randomx_cache | |
randomx_dataset | |
randomx_vm |
Constants
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_calculate_hash_first⚠ | Set of functions used to calculate multiple RandomX hashes more efficiently. randomx_calculate_hash_first will begin a hash calculation. randomx_calculate_hash_next will output the hash value of the previous input and begin the calculation of the next hash. randomx_calculate_hash_last will output the hash value of the previous input. |
randomx_calculate_hash_last⚠ | |
randomx_calculate_hash_next⚠ | |
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_get_flags⚠ | @return The recommended flags to be used on the current machine. Does not include: RANDOMX_FLAG_LARGE_PAGES RANDOMX_FLAG_FULL_MEM RANDOMX_FLAG_SECURE These flags must be added manually if desired. On OpenBSD RANDOMX_FLAG_SECURE is enabled by default in JIT mode as W^X is enforced by the OS. |
randomx_init_cache⚠ | Initializes the cache memory and SuperscalarHash using the provided key value. Does nothing if called again with the same 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. Does nothing if called with a Cache containing the same key value as already set. |
randomx_vm_set_dataset⚠ | Reinitializes a virtual machine with a new Dataset. |