MCPcopy Create free account
hub / github.com/Exrick/xpay / encode

Function encode

xpay-code/src/main/resources/static/swagger/swagger-ui.js:9686–9688  ·  view source on GitHub ↗
(num)

Source from the content-addressed store, hash-verified

9684 temp, length
9685
9686 function encode (num) {
9687 return lookup.charAt(num)
9688 }
9689
9690 function tripletToBase64 (num) {
9691 return encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)

Callers 2

tripletToBase64Function · 0.70
uint8ToBase64Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected