how to input string and read string result from ManticoreWASM #2445
Unanswered
dengliangjun
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am not only a manticore fresher but also a wasm fresher.
my wasm function require a string parameter, in fact string parameter become two parameters, the first is addr and the second is length of string, according to wasm/wat.
my source code and wat code like bellow code demonstrated.
void testString(std::string) -> fun $testString (type 6)(I32 I32)
I use ManticoreWASM to load wasm, invoke testString function with argument_generate function.
is there anyone know how to pass a string parameter or arraybuffer to ManticoreWASM.
thanks indeed.
Beta Was this translation helpful? Give feedback.
All reactions