pub(super) fn execute_hashsu(engine: &mut Engine) -> Status {
    engine.load_instruction(Instruction::new("HASHSU"))?;
    fetch_stack(engine, 1)?;
    let builder = BuilderData::from_slice(engine.cmd.var(0).as_slice()?);
    let cell = engine.finalize_cell(builder)?;
    let hash_int = hash_to_uint(&cell.repr_hash());
    engine.cc.stack.push(StackItem::integer(hash_int));
    Ok(())
}
/// Computes the hash of a Slice s and returns it as a 256-bit unsigned integer x.
/// The result is the same as if an ordinary cell containing only data
/// and references from s had been created and its hash computed by HASHCU.
Computes the hash of a Slice s and returns it as a 256-bit unsigned integer x.
The result is the same as if an ordinary cell containing only data
and references from s had been created and its hash computed by HASHCU.
Computes the hash of a Slice s and returns it as a 256 - bit unsigned integer x . The result is the same as if an ordinary cell containing only data and references from s had been created and its hash computed by HASHCU .
pub(super) fn execute_hashsu(engine: &mut Engine) -> Status {
    engine.load_instruction(Instruction::new("HASHSU"))?;
    fetch_stack(engine, 1)?;
    let builder = BuilderData::from_slice(engine.cmd.var(0).as_slice()?);
    let cell = engine.finalize_cell(builder)?;
    let hash_int = hash_to_uint(&cell.repr_hash());
    engine.cc.stack.push(StackItem::integer(hash_int));
    Ok(())
}
pub ( super ) fn execute_hashsu ( engine : & mut Engine ) -> Status { engine . load_instruction ( Instruction :: new ( " " ) ) ? ; fetch_stack ( engine , 1 ) ? ; let builder = BuilderData :: from_slice ( engine . cmd . var ( 0 ) . as_slice ( ) ? ) ; let cell = engine . finalize_cell ( builder ) ? ; let hash_int = hash_to_uint ( & cell . repr_hash ( ) ) ; engine . cc . stack . push ( StackItem :: integer ( hash_int ) ) ; Ok ( ( ) ) }
Computes the hash of a Slice s and returns it as a 256-bit unsigned integer x.
Computes the hash of a Slice s and returns it as a 256 - bit unsigned integer x .
engine
&mut Engine
engine
&mut Engine