MCPcopy Create free account
hub / github.com/dataease/SQLBot / ucs2Write

Function ucs2Write

frontend/public/swagger-ui-bundle.js:21802–21815  ·  view source on GitHub ↗
(s, o, i, a)

Source from the content-addressed store, hash-verified

21800 return blitBuffer(base64ToBytes(o), s, i, a)
21801 }
21802 function ucs2Write(s, o, i, a) {
21803 return blitBuffer(
21804 (function utf16leToBytes(s, o) {
21805 let i, a, u
21806 const _ = []
21807 for (let w = 0; w < s.length && !((o -= 2) < 0); ++w)
21808 ((i = s.charCodeAt(w)), (a = i >> 8), (u = i % 256), _.push(u), _.push(a))
21809 return _
21810 })(o, s.length - i),
21811 s,
21812 i,
21813 a
21814 )
21815 }
21816 function base64Slice(s, o, i) {
21817 return 0 === o && i === s.length ? a.fromByteArray(s) : a.fromByteArray(s.slice(o, i))
21818 }

Callers 1

Calls 2

blitBufferFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected