MCPcopy Create free account
hub / github.com/assimp/assimp / DecodeChar

Function DecodeChar

code/Common/Base64.cpp:66–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66inline uint8_t DecodeChar(char c) {
67 if (c & 0x80) {
68 throw DeadlyImportError("Invalid base64 char value: ", size_t(c));
69 }
70 return tableDecodeBase64[size_t(c & 0x7F)]; // TODO faster with lookup table or ifs?
71}
72
73void Encode(const uint8_t *in, size_t inLength, std::string &out) {
74 if (in == nullptr || inLength==0) {

Callers 1

DecodeFunction · 0.85

Calls 1

DeadlyImportErrorFunction · 0.85

Tested by

no test coverage detected