-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Labels
❓ questionFurther information is requestedFurther information is requested
Description
Hi,
i try to implement missing function where expected signature is:
expected signature: [I32, I64, I32, I32] -> [I32]
my code:
$imports = [
'wasi_unstable' => [
'fd_seek' => function(int $file, int $offset, int $whence, int $newoffset): int {
return 0;
},
]
]
$instance = new Wasm\Instance(__DIR__ . '/demo.wasm', $imports);
when i try to run i get this error:
Incorrect import signature, namespace: wasi_unstable, name: fd_seek, expected signature: [I32, I64, I32, I32] -> [I32], found signature: [I32, I32, I32, I32] -> [I32]
How to set parameter type to i64 in imported functions?
Metadata
Metadata
Assignees
Labels
❓ questionFurther information is requestedFurther information is requested