MCPcopy Create free account
hub / github.com/apache/thrift / base64_decode

Function base64_decode

lib/cpp/src/thrift/protocol/TBase64Utils.cpp:304–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302};
303
304void base64_decode(uint8_t* buf, uint32_t len) {
305 buf[0] = (kBase64DecodeTable[buf[0]] << 2) | (kBase64DecodeTable[buf[1]] >> 4);
306 if (len > 2) {
307 buf[1] = ((kBase64DecodeTable[buf[1]] << 4) & 0xf0) | (kBase64DecodeTable[buf[2]] >> 2);
308 if (len > 3) {
309 buf[2] = ((kBase64DecodeTable[buf[2]] << 6) & 0xc0) | (kBase64DecodeTable[buf[3]]);
310 }
311 }
312}
313}
314}
315} // apache::thrift::protocol

Callers 4

testReadStructAMethod · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85
readJSONBase64Method · 0.85
TestClient.phpFile · 0.85

Calls

no outgoing calls

Tested by 2

testReadStructAMethod · 0.68
BOOST_AUTO_TEST_CASEFunction · 0.68