MCPcopy Create free account
hub / github.com/nodejs/node / emit_u32

Method emit_u32

test/fixtures/wpt/wasm/jsapi/wasm-module-builder.js:700–706  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

698 }
699
700 emit_u32(val) {
701 this.ensure_space(4);
702 this.buffer[this.length++] = val;
703 this.buffer[this.length++] = val >> 8;
704 this.buffer[this.length++] = val >> 16;
705 this.buffer[this.length++] = val >> 24;
706 }
707
708 emit_leb_u(val, max_len) {
709 this.ensure_space(max_len);

Callers

nothing calls this directly

Calls 1

ensure_spaceMethod · 0.95

Tested by

no test coverage detected