← Back to team overview

leaningtech-dev team mailing list archive

Re: [Question #249804]: How to operate on TypedArray in C++

 

Question #249804 on Duetto changed:
https://answers.launchpad.net/duetto/+question/249804

    Status: Open => Answered

Alessandro Pignotti proposed the following answer:
You can use two different approaches:

1) Use client::Int8Array (or any typed array) and convert to pointer to data on the C++ side, like shown above
2) Forge a duetto compatible pointer on the javascript side, using the following syntax
     obj.method( { d: input_array, o: 0}, { d:output_array, o: 0})

-- 
You received this question notification because you are a member of
Leaningtech Team, which is an answer contact for Duetto.