Struct randomx_rs::RandomXCache [−][src]
pub struct RandomXCache { /* fields omitted */ }
Expand description
Cache structure
Implementations
Creates a new cache object, allocates memory to the cache
object and initializes it with
he key value, error on failure.
flags
is any combination of the following two flags:
- FLAG_LARGE_PAGES
- FLAG_JIT
and (optionally) one of the following flags (depending on instruction set supported):
- FLAG_ARGON2_SSSE3
- FLAG_ARGON2_AVX2
key
is a sequence of u8 used to initialize SuperScalarHash.