Trait solana_program::program_stubs::SyscallStubs[][src]

pub trait SyscallStubs: Sync + Send {
Show 14 methods fn sol_log(&self, message: &str) { ... }
fn sol_log_compute_units(&self) { ... }
fn sol_invoke_signed(
        &self,
        _instruction: &Instruction,
        _account_infos: &[AccountInfo<'_>],
        _signers_seeds: &[&[&[u8]]]
    ) -> ProgramResult { ... }
fn sol_get_clock_sysvar(&self, _var_addr: *mut u8) -> u64 { ... }
fn sol_get_epoch_schedule_sysvar(&self, _var_addr: *mut u8) -> u64 { ... }
fn sol_get_fees_sysvar(&self, _var_addr: *mut u8) -> u64 { ... }
fn sol_get_rent_sysvar(&self, _var_addr: *mut u8) -> u64 { ... }
unsafe fn sol_memcpy(&self, dst: *mut u8, src: *const u8, n: usize) { ... }
unsafe fn sol_memmove(&self, dst: *mut u8, src: *const u8, n: usize) { ... }
unsafe fn sol_memcmp(
        &self,
        s1: *const u8,
        s2: *const u8,
        n: usize,
        result: *mut i32
    ) { ... }
unsafe fn sol_memset(&self, s: *mut u8, c: u8, n: usize) { ... }
fn sol_get_return_data(&self) -> Option<(Pubkey, Vec<u8>)> { ... }
fn sol_set_return_data(&mut self, _data: &[u8]) { ... }
fn sol_log_data(&self, fields: &[&[u8]]) { ... }
}

Provided methods

Implementors