#include <array>
#include <cstring>
#include <folly/Portability.h>
#include <folly/detail/base64_detail/Base64Constants.h>
#include <folly/detail/base64_detail/Base64HiddenConstants.h>
#include <folly/detail/base64_detail/Base64SWAR.h>
#include <folly/detail/base64_detail/Base64Scalar.h>
namespace folly::detail::base64_detail {
namespace {
char* base64DecodeTailSWAR(
const char* f, char* o, std::uint32_t& errorAccumulator) { … }
char* base64URLDecodeTailSWAR(
const char* f, const char* l, char* o, std::uint32_t& errorAccumulator) { … }
kBase64SwarDecodeTable;
template <bool isURL>
std::uint32_t base64DecodeSWARMainLoop(
const char*& f, const char* l, char*& o) noexcept { … }
}
Base64DecodeResult base64DecodeSWAR(
const char* f, const char* l, char* o) noexcept { … }
Base64DecodeResult base64URLDecodeSWAR(
const char* f, const char* l, char* o) noexcept { … }
}