MCPcopy Create free account
hub / github.com/UI5/webcomponents / utf16leSlice

Function utf16leSlice

packages/main/test/pages/diffable-html.js:1149–1156  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

1147 }
1148
1149 function utf16leSlice (buf, start, end) {
1150 var bytes = buf.slice(start, end)
1151 var res = ''
1152 for (var i = 0; i < bytes.length; i += 2) {
1153 res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))
1154 }
1155 return res
1156 }
1157
1158 Buffer.prototype.slice = function slice (start, end) {
1159 var len = this.length

Callers 1

slowToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…