MCPcopy Create free account
hub / github.com/bitpay/bitcore-message / ucs2Write

Function ucs2Write

bitcore-message.js:1118–1120  ·  view source on GitHub ↗
(buf, string, offset, length)

Source from the content-addressed store, hash-verified

1116}
1117
1118function ucs2Write (buf, string, offset, length) {
1119 return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)
1120}
1121
1122Buffer.prototype.write = function write (string, offset, length, encoding) {
1123 // Buffer#write(string)

Callers 1

bitcore-message.jsFile · 0.85

Calls 2

blitBufferFunction · 0.85
utf16leToBytesFunction · 0.85

Tested by

no test coverage detected