MCPcopy Index your code
hub / github.com/feross/buffer / ucs2Write

Function ucs2Write

index.js:864–866  ·  view source on GitHub ↗
(buf, string, offset, length)

Source from the content-addressed store, hash-verified

862}
863
864function ucs2Write (buf, string, offset, length) {
865 return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
866}
867
868Buffer.prototype.write = function write (string, offset, length, encoding) {
869 // Buffer#write(string)

Callers 1

index.jsFile · 0.85

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…