MCPcopy Create free account
hub / github.com/microsoft/SandDance / hexSlice

Function hexSlice

docs/app/js/sanddance-app.js:113556–113563  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

113554 return ret;
113555}
113556function hexSlice(buf, start, end) {
113557 var len = buf.length;
113558 if (!start || start < 0) start = 0;
113559 if (!end || end < 0 || end > len) end = len;
113560 var out = "";
113561 for(var i = start; i < end; ++i)out += hexSliceLookupTable[buf[i]];
113562 return out;
113563}
113564function utf16leSlice(buf, start, end) {
113565 var bytes = buf.slice(start, end);
113566 var res = "";

Callers 1

slowToStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected