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

Function base64ToBytes

frontend/public/swagger-ui-bundle.js:22815–22823  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

22813 return _
22814 }
22815 function base64ToBytes(s) {
22816 return a.toByteArray(
22817 (function base64clean(s) {
22818 if ((s = (s = s.split('=')[0]).trim().replace(j, '')).length < 2) return ''
22819 for (; s.length % 4 != 0; ) s += '='
22820 return s
22821 })(s)
22822 )
22823 }
22824 function blitBuffer(s, o, i, a) {
22825 let u
22826 for (u = 0; u < a && !(u + i >= o.length || u >= s.length); ++u) o[u + i] = s[u]

Callers 2

byteLengthFunction · 0.85
base64WriteFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected