mem top-level property

Allocator mem
getter/setter pair

The default allocator used by all parts of fbclient, whenever a native memory needs to be allocated.

The allocator can be overriden by simply assigning a new value to this global. See the example/fbdb/ex_11_mem_benchmark.dart for some insights on how to use the tracing allocator to look for memory leaks. In normal circumstances there's no need to change the allocator, which by default is the built-in Dart FFI's calloc.

Implementation

Allocator mem = calloc;