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

Function ucs2Write

app/public/socketcluster-client.js:3462–3464  ·  view source on GitHub ↗
(buf, string, offset, length)

Source from the content-addressed store, hash-verified

3460}
3461
3462function ucs2Write (buf, string, offset, length) {
3463 return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
3464}
3465
3466Buffer.prototype.write = function write (string, offset, length, encoding) {
3467 // Buffer#write(string)

Callers 1

Calls 2

blitBufferFunction · 0.85
utf16leToBytesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…