MCPcopy Create free account
hub / github.com/TruthHun/BookStack / hexSlice

Function hexSlice

static/word2md/mammoth.browser.js:10725–10736  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

10723}
10724
10725function hexSlice (buf, start, end) {
10726 var len = buf.length
10727
10728 if (!start || start < 0) start = 0
10729 if (!end || end < 0 || end > len) end = len
10730
10731 var out = ''
10732 for (var i = start; i < end; ++i) {
10733 out += toHex(buf[i])
10734 }
10735 return out
10736}
10737
10738function utf16leSlice (buf, start, end) {
10739 var bytes = buf.slice(start, end)

Callers 1

slowToStringFunction · 0.70

Calls 1

toHexFunction · 0.70

Tested by

no test coverage detected