[][src]Crate randomx_sys

Structs

max_align_t
randomx_cache
randomx_dataset
randomx_vm

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.

Type Definitions

randomx_flags
wchar_t