Function ckb_std::syscalls::load_script

source ·
pub fn load_script(buf: &mut [u8], offset: usize) -> Result<usize, SysError>
Available on non-crate feature simulator only.
Expand description

Load script

Return the loaded data length or a syscall error

Arguments

  • buf - a writable buf used to receive the data
  • offset - offset