MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / hexSlice

Function hexSlice

lib/sanitize-html.js:1629–1640  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

1627}
1628
1629function hexSlice (buf, start, end) {
1630 var len = buf.length
1631
1632 if (!start || start < 0) start = 0
1633 if (!end || end < 0 || end > len) end = len
1634
1635 var out = ''
1636 for (var i = start; i < end; ++i) {
1637 out += toHex(buf[i])
1638 }
1639 return out
1640}
1641
1642function utf16leSlice (buf, start, end) {
1643 var bytes = buf.slice(start, end)

Callers 1

slowToStringFunction · 0.85

Calls 1

toHexFunction · 0.85

Tested by

no test coverage detected