teavm icon indicating copy to clipboard operation
teavm copied to clipboard

WASM how to transfer Array

Open luxun0517 opened this issue 6 years ago • 4 comments

???

luxun0517 avatar Feb 25 '19 06:02 luxun0517

There's no way to transfer arrays between JavaScript and WebAssembly. So there's no way to transfer array between TeaVM/WebAssembly and JavaScript. If you want to transfer complex data structures between Java and JavaScript, you should prefer JavaScript target. Currently, targetting to WebAssembly gives no benefits, either in performance or memory consumption.

konsoletyper avatar Feb 25 '19 08:02 konsoletyper

@konsoletyper is there a way to read & write from WebAssembly Memory(HEAP)

abhishek-panda avatar Mar 17 '20 15:03 abhishek-panda

@konsoletyper is there a way to read & write from WebAssembly Memory(HEAP)

Hi panda, I want to transfer array in my project, can you give me some advices ? Thank very much!

quantum6 avatar Jun 03 '21 08:06 quantum6

@abhishek-panda Hi panda, I want to transfer array in my project, can you give me some advices ? Thank very much!

quantum6 avatar Jun 03 '21 08:06 quantum6