MCPcopy Create free account
hub / github.com/microsoft/SandDance / ucs2Write

Function ucs2Write

docs/app/js/sanddance-app.js:113411–113413  ·  view source on GitHub ↗
(buf, string, offset, length)

Source from the content-addressed store, hash-verified

113409 return blitBuffer(base64ToBytes(string), buf, offset, length);
113410}
113411function ucs2Write(buf, string, offset, length) {
113412 return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
113413}
113414Buffer.prototype.write = function write(string, offset, length, encoding) {
113415 // Buffer#write(string)
113416 if (offset === undefined) {

Callers 1

sanddance-app.jsFile · 0.70

Calls 2

blitBufferFunction · 0.70
utf16leToBytesFunction · 0.70

Tested by

no test coverage detected