pub fn return_length() -> u64 
Expand description

Return value length in bytes.

Returns

  • [u64] - The length in bytes of the value stored in the return register of the VM for the current context.

Examples

use std::registers::return_length;

fn foo() {
    let ret = return_length();
    assert(ret == 0);
}