MCPcopy Create free account
hub / github.com/WebAssembly/wabt / toString

Method toString

src/wabt.post.js:141–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139 }
140
141 toString() {
142 if (!this.addr) {
143 return '';
144 }
145
146 const addr = Module._wabt_output_buffer_get_data(this.addr);
147 const size = Module._wabt_output_buffer_get_size(this.addr);
148 return UTF8ToString(addr, size);
149 }
150
151 destroy() {
152 Module._wabt_destroy_output_buffer(this.addr);

Callers 3

formatMethod · 0.45
toTextMethod · 0.45
toBinaryMethod · 0.45

Calls 1

UTF8ToStringFunction · 0.85

Tested by

no test coverage detected