leaningtech-dev team mailing list archive
-
leaningtech-dev team
-
Mailing list archive
-
Message #00182
Re: [Question #249804]: How to operate on TypedArray in C++
Question #249804 on Duetto changed:
https://answers.launchpad.net/duetto/+question/249804
Status: Answered => Open
ben layet is still having a problem:
Thanks, that looks suitable for use with Browser APIs within the C++.
What if I want to pass TypedArrays to a C++ method from the JS? What
signature do I need on the C++ method?
e.g. I want to do:
In JS
var obj = new Object();
var input_array = some typed array;
var output_array = some typed array;
obj.method(input_array, output_array);
In C++
class Object [[jsexport]] {
public:
void method(<what signature here?>) {
<use C pointers to access the TypedArrays here>
}
ben
--
You received this question notification because you are a member of
Leaningtech Team, which is an answer contact for Duetto.