MCPcopy Create free account
hub / github.com/FastLED/FastLED / base64_char_index

Function base64_char_index

src/fl/remote/rpc/base64.cpp.hpp:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
10
11static int base64_char_index(char c) {
12 if (c >= 'A' && c <= 'Z') return c - 'A';
13 if (c >= 'a' && c <= 'z') return c - 'a' + 26;
14 if (c >= '0' && c <= '9') return c - '0' + 52;
15 if (c == '+') return 62;
16 if (c == '/') return 63;
17 return -1;
18}
19
20} // namespace
21

Callers 1

base64_decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected