malloc method

  1. @override
int malloc(
  1. int size
)
override

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) => throw new UnsupportedError(
    'Emscripten operations are only allowed on the web (where dart:js is present)!');