INNER CODE UNIT · JavaScript
hex32
FStarLang/karamel · krmllib/js/loader.js:52
function hex32(m8, start) {
return hexle(m8, start, 4);
}
function hex64(m8, start) {
return hexle(m8, start, 8);
}
function p32(n) {
return p8((n >>> 24) & 255) + p8((n >>> 16) & 255) + p8((n >>> 8) & 255) + p8(n & 255);
}
// Print the contents of the memory in a format similar to xxd or hexdump.
// @param {WebAssembly.Memory} mem The memory to print
// @param {Number} size The amount of memory to print out, in bytes
// @param {Number} ofs Optional. The offset at which printing
// starts.
function dump(mem, size, ofs) {