MCPcopy Create free account
hub / github.com/BobbyAnguelov/Esoterica / FindCharIndex

Function FindCharIndex

Code/Base/Encoding/Encoding.cpp:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 return ( std::isalnum( c ) || ( c == '+' ) || ( c == '/' ) );
70 }
71
72 static uint8_t FindCharIndex( uint8_t c )
73 {
74 for ( uint8_t i = 0; i < 65; i++ )
75 {
76 if ( g_charTable[i] == c )
77 {
78 return i;
79 }
80 }
81
82 EE_UNREACHABLE_CODE();
83 return (uint8_t) -1;
84 }
85
86 Blob Decode( uint8_t const* pDataToDecode, size_t dataSize )

Callers 1

DecodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected