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

Function utf16leSlice

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

Source from the content-addressed store, hash-verified

10736}
10737
10738function utf16leSlice (buf, start, end) {
10739 var bytes = buf.slice(start, end)
10740 var res = ''
10741 for (var i = 0; i < bytes.length; i += 2) {
10742 res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)
10743 }
10744 return res
10745}
10746
10747Buffer.prototype.slice = function slice (start, end) {
10748 var len = this.length

Callers 1

slowToStringFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected