Package org.teavm.interop
Class DirectMalloc
java.lang.Object
org.teavm.interop.DirectMalloc
Linear memory allocator for creating "direct buffers" in WASM GC
DO NOT USE IN LEGACY WASM BACKEND!!! Make a regular byte array, and use Address.ofData()
Similar to dlmalloc and emmalloc (emscripten's malloc)
bad things will happen if you free an address that was never allocated
DO NOT USE IN LEGACY WASM BACKEND!!! Make a regular byte array, and use Address.ofData()
Similar to dlmalloc and emmalloc (emscripten's malloc)
bad things will happen if you free an address that was never allocated
-
Method Summary
-
Method Details
-
malloc
-
calloc
-
free
-
memcpy
-
memset
-
zmemset
-