sp1-core-executor 6.2.1

RISC-V executor for SP1
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::SyscallRuntime;
use crate::{ExecutionMode, SyscallCode};

pub(crate) fn hint_len_syscall<'a, M: ExecutionMode, RT: SyscallRuntime<'a, M>>(
    ctx: &mut RT,
    _: SyscallCode,
    _: u64,
    _: u64,
) -> Option<u64> {
    ctx.core_mut().mem_reads().next().map(|mem_value| mem_value.value)
}