chromium/base/base64.cc

// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/base64.h"

#include <stddef.h>

#include <string_view>

#include "base/check.h"
#include "base/numerics/checked_math.h"
#include "base/strings/string_util.h"
#include "third_party/modp_b64/modp_b64.h"

namespace base {

namespace {

ModpDecodePolicy GetModpPolicy(Base64DecodePolicy policy) {}

}  // namespace

std::string Base64Encode(span<const uint8_t> input) {}

void Base64EncodeAppend(span<const uint8_t> input, std::string* output) {}

std::string Base64Encode(std::string_view input) {}

bool Base64Decode(std::string_view input,
                  std::string* output,
                  Base64DecodePolicy policy) {}

std::optional<std::vector<uint8_t>> Base64Decode(std::string_view input) {}

}  // namespace base