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

Function utf16leSlice

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

Source from the content-addressed store, hash-verified

1640}
1641
1642function utf16leSlice (buf, start, end) {
1643 var bytes = buf.slice(start, end)
1644 var res = ''
1645 for (var i = 0; i < bytes.length; i += 2) {
1646 res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
1647 }
1648 return res
1649}
1650
1651Buffer.prototype.slice = function slice (start, end) {
1652 var len = this.length

Callers 1

slowToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected