#include #include extern "C" { void one(char *data, int size) { int *x = (int*)data; int num = size/sizeof(int); for (int i = 0; i < num; i++) { x[i] += 1234; } emscripten_worker_respond(data, size); } }