MCPcopy Index your code
hub / github.com/Effect-TS/effect / getBase64Code

Function getBase64Code

packages/effect/src/internal/encoding/base64.ts:80–91  ·  view source on GitHub ↗

@internal

(charCode: number)

Source from the content-addressed store, hash-verified

78
79/** @internal */
80function getBase64Code(charCode: number) {
81 if (charCode >= base64codes.length) {
82 throw new TypeError(`Invalid character ${String.fromCharCode(charCode)}`)
83 }
84
85 const code = base64codes[charCode]
86 if (code === 255) {
87 throw new TypeError(`Invalid character ${String.fromCharCode(charCode)}`)
88 }
89
90 return code
91}
92
93/** @internal */
94const base64abc = [

Callers 1

decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected