#include "ui/base/clipboard/custom_data_helper.h"
#include <tuple>
#include <utility>
#include "base/containers/span.h"
#include "base/pickle.h"
namespace ui {
namespace {
bool SkipString16(base::PickleIterator* iter) { … }
}
void ReadCustomDataTypes(base::span<const uint8_t> data,
std::vector<std::u16string>* types) { … }
std::optional<std::u16string> ReadCustomDataForType(
base::span<const uint8_t> data,
std::u16string_view type) { … }
std::optional<std::unordered_map<std::u16string, std::u16string>>
ReadCustomDataIntoMap(base::span<const uint8_t> data) { … }
void WriteCustomDataToPickle(
const std::unordered_map<std::u16string, std::u16string>& data,
base::Pickle* pickle) { … }
void WriteCustomDataToPickle(
const base::flat_map<std::u16string, std::u16string>& data,
base::Pickle* pickle) { … }
}