multiversx_chain_vm::vm_hooks

Trait VMHooksBigInt

Source
pub trait VMHooksBigInt: VMHooksHandlerSource + VMHooksError {
Show 26 methods // Provided methods fn bi_new(&self, value: i64) -> RawHandle { ... } fn bi_set_int64(&self, destination: RawHandle, value: i64) { ... } fn bi_unsigned_byte_length(&self, handle: RawHandle) -> usize { ... } fn bi_get_unsigned_bytes(&self, handle: RawHandle) -> Vec<u8> { ... } fn bi_set_unsigned_bytes(&self, destination: RawHandle, bytes: &[u8]) { ... } fn bi_get_signed_bytes(&self, handle: RawHandle) -> Vec<u8> { ... } fn bi_set_signed_bytes(&self, destination: RawHandle, bytes: &[u8]) { ... } fn bi_is_int64(&self, destination_handle: RawHandle) -> i32 { ... } fn bi_get_int64(&self, destination_handle: RawHandle) -> i64 { ... } fn bi_add(&self, dest: RawHandle, x: RawHandle, y: RawHandle) { ... } fn bi_sub(&self, dest: RawHandle, x: RawHandle, y: RawHandle) { ... } fn bi_mul(&self, dest: RawHandle, x: RawHandle, y: RawHandle) { ... } fn bi_t_div(&self, dest: RawHandle, x: RawHandle, y: RawHandle) { ... } fn bi_t_mod(&self, dest: RawHandle, x: RawHandle, y: RawHandle) { ... } fn bi_abs(&self, dest: RawHandle, x: RawHandle) { ... } fn bi_neg(&self, dest: RawHandle, x: RawHandle) { ... } fn bi_sign(&self, x: RawHandle) -> i32 { ... } fn bi_cmp(&self, x: RawHandle, y: RawHandle) -> i32 { ... } fn bi_sqrt(&self, dest: RawHandle, x: RawHandle) { ... } fn bi_pow(&self, dest: RawHandle, x: RawHandle, y: RawHandle) { ... } fn bi_log2(&self, x: RawHandle) -> i32 { ... } fn bi_and(&self, dest: RawHandle, x: RawHandle, y: RawHandle) { ... } fn bi_or(&self, dest: RawHandle, x: RawHandle, y: RawHandle) { ... } fn bi_xor(&self, dest: RawHandle, x: RawHandle, y: RawHandle) { ... } fn bi_shr(&self, dest: RawHandle, x: RawHandle, bits: usize) { ... } fn bi_shl(&self, dest: RawHandle, x: RawHandle, bits: usize) { ... }
}
Expand description

Provides VM hook implementations for methods that deal big ints.

Provided Methods§

Source

fn bi_new(&self, value: i64) -> RawHandle

Source

fn bi_set_int64(&self, destination: RawHandle, value: i64)

Source

fn bi_unsigned_byte_length(&self, handle: RawHandle) -> usize

Source

fn bi_get_unsigned_bytes(&self, handle: RawHandle) -> Vec<u8>

Source

fn bi_set_unsigned_bytes(&self, destination: RawHandle, bytes: &[u8])

Source

fn bi_get_signed_bytes(&self, handle: RawHandle) -> Vec<u8>

Source

fn bi_set_signed_bytes(&self, destination: RawHandle, bytes: &[u8])

Source

fn bi_is_int64(&self, destination_handle: RawHandle) -> i32

Source

fn bi_get_int64(&self, destination_handle: RawHandle) -> i64

Source

fn bi_add(&self, dest: RawHandle, x: RawHandle, y: RawHandle)

Source

fn bi_sub(&self, dest: RawHandle, x: RawHandle, y: RawHandle)

Source

fn bi_mul(&self, dest: RawHandle, x: RawHandle, y: RawHandle)

Source

fn bi_t_div(&self, dest: RawHandle, x: RawHandle, y: RawHandle)

Source

fn bi_t_mod(&self, dest: RawHandle, x: RawHandle, y: RawHandle)

Source

fn bi_abs(&self, dest: RawHandle, x: RawHandle)

Source

fn bi_neg(&self, dest: RawHandle, x: RawHandle)

Source

fn bi_sign(&self, x: RawHandle) -> i32

Source

fn bi_cmp(&self, x: RawHandle, y: RawHandle) -> i32

Source

fn bi_sqrt(&self, dest: RawHandle, x: RawHandle)

Source

fn bi_pow(&self, dest: RawHandle, x: RawHandle, y: RawHandle)

Source

fn bi_log2(&self, x: RawHandle) -> i32

Source

fn bi_and(&self, dest: RawHandle, x: RawHandle, y: RawHandle)

Source

fn bi_or(&self, dest: RawHandle, x: RawHandle, y: RawHandle)

Source

fn bi_xor(&self, dest: RawHandle, x: RawHandle, y: RawHandle)

Source

fn bi_shr(&self, dest: RawHandle, x: RawHandle, bits: usize)

Source

fn bi_shl(&self, dest: RawHandle, x: RawHandle, bits: usize)

Implementors§