Module black_box

Source
Expand description

Implementations for VM native black box functions.

Functionsยง

black_box_function_from_op ๐Ÿ”’
Maps a BlackBoxOp variant to its corresponding BlackBoxFunc. Used primarily for error reporting and resolution purposes.
evaluate_black_box ๐Ÿ”’
Evaluates a black box function inside the VM, performing the actual native computation.
read_heap_array ๐Ÿ”’
Reads a fixed-size array from memory.
to_be_radix ๐Ÿ”’
to_u8_vec ๐Ÿ”’
Extracts the last byte of every value
to_value_vec ๐Ÿ”’
Converts a slice of u8 values into a Vec<MemoryValue<F>>, wrapping each byte as a MemoryValue::U8.
write_heap_array ๐Ÿ”’
Write values to a array in memory.