init static method

void init(
  1. [int pointerSizeBytes = 4]

Must be called before working with web_ffi to initalize all type sizes.

The optional parameter pointerSizeBytes can be used to adjust the size of pointers. It defaults to 4 since WebAssembly usually uses 32 bit pointers. If you want to use wasm64, set pointerSizeBytes to 8 to denote 64 bit pointers.


static void init([int pointerSizeBytes = 4]) {