3 ms·
https://github.com/cloudflare/cloudflare-workers-wasm-demo/blob/a153279d3ba17b19aa25b0afd329515f5412077b/main.c#L31 https://github.com/cloudflare/cloudflare-wor
by Arnavion 8y ago
https://github.com/cloudflare/cloudflare-workers-wasm-demo/blob/a153279d3ba17b19aa25b0afd329515f5412077b/main.c#L31 https://github.com/cloudflare/cloudflare-workers-wasm-demo/b...
// init() is called from JS to allocate space for the image file.
byte* init(size_t image_size) {
// Reset the heap to empty. (See malloc() implementation in bootstrap.h.)
heap = &__heap_base;