Function load_script_hash
Source pub fn load_script_hash(
buf: &mut [u8],
offset: usize,
) -> Result<usize, SysError>
Available on non-crate feature native-simulator only.
Expand description
Load script hash
Return the loaded data length or a syscall error
§Arguments
buf - a writable buf used to receive the data
offset - offset
§Example
let mut script_hash = [0u8; 32];
let len = load_script_hash(&mut script_hash, 0).unwrap();
assert_eq!(len, script_hash.len());