MCPcopy Create free account
hub / github.com/OneNoteDev/WebClipper / ucs2Write

Function ucs2Write

lib/sanitize-html.js:1422–1424  ·  view source on GitHub ↗
(buf, string, offset, length)

Source from the content-addressed store, hash-verified

1420}
1421
1422function ucs2Write (buf, string, offset, length) {
1423 return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
1424}
1425
1426Buffer.prototype.write = function write (string, offset, length, encoding) {
1427 // Buffer#write(string)

Callers 1

sanitize-html.jsFile · 0.85

Calls 2

blitBufferFunction · 0.85
utf16leToBytesFunction · 0.85

Tested by

no test coverage detected