kawamuray / wasmtime-java

Java or JVM-language binding for Wasmtime
Apache License 2.0
127 stars 29 forks source link

Memory.buffer method #56

Open fatihpense opened 8 months ago

fatihpense commented 8 months ago

Sorry if this is a wrong place to ask, I couldn't find discussions or any other channel.

I get "out of bounds" and "buffer underflow" errors in some cases

When I sprinkle: buf = mem.buffer(store); before reading or writing to the shared memory, these errors go away. What is the explanation for this? Or is there a documentation for further reading?

Thanks for the library!