malloc method
Provides access to the malloc function in WebAssembly.
Allocates size bytes of memory and returns the corresponding
address.
Memory allocated by this should be freed afterwards.
Implementation
@override
int malloc(int size) => _malloc(size);