MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / renderBytes

Function renderBytes

crates/explorer/src/index.js:195–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193};
194
195const renderBytes = bytes => {
196 let s = "";
197 for (let i = 0; i < bytes.length; i++) {
198 if (i != 0) {
199 s += " ";
200 }
201 const hexByte = bytes[i].toString(16);
202 s += hexByte.length == 2 ? hexByte : "0" + hexByte;
203 }
204 return s + repeat(" ", 30 - s.length);
205};
206
207const renderInst = (mnemonic, operands) => {
208 if (operands.length == 0) {

Callers 1

index.jsFile · 0.85

Calls 1

repeatFunction · 0.70

Tested by

no test coverage detected