MCPcopy Create free account
hub / github.com/SocketCluster/socketcluster / utf16leSlice

Function utf16leSlice

app/public/socketcluster-client.js:3681–3688  ·  view source on GitHub ↗
(buf, start, end)

Source from the content-addressed store, hash-verified

3679}
3680
3681function utf16leSlice (buf, start, end) {
3682 var bytes = buf.slice(start, end)
3683 var res = ''
3684 for (var i = 0; i < bytes.length; i += 2) {
3685 res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))
3686 }
3687 return res
3688}
3689
3690Buffer.prototype.slice = function slice (start, end) {
3691 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…