MCPcopy Create free account
hub / github.com/Effect-TS/effect / getBase64Code

Function getBase64Code

packages/effect/src/Encoding.ts:533–544  ·  view source on GitHub ↗
(charCode: number)

Source from the content-addressed store, hash-verified

531}
532
533function getBase64Code(charCode: number) {
534 if (charCode >= base64codes.length) {
535 throw new TypeError(`Invalid character ${String.fromCharCode(charCode)}`)
536 }
537
538 const code = base64codes[charCode]
539 if (code === 255) {
540 throw new TypeError(`Invalid character ${String.fromCharCode(charCode)}`)
541 }
542
543 return code
544}
545
546const base64abc = [
547 "A",

Callers 1

decodeBase64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected