chromium/device/fido/cbor_extract.cc

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

#ifdef UNSAFE_BUFFERS_BUILD
// TODO(crbug.com/351564777): Remove this and convert code to safer constructs.
#pragma allow_unsafe_buffers
#endif

#include "device/fido/cbor_extract.h"

#include <type_traits>

#include "base/check_op.h"
#include "base/functional/callback.h"
#include "base/memory/raw_span.h"
#include "components/cbor/values.h"

namespace device {
namespace cbor_extract {

namespace {

Type;

static_assert;

const bool kTrue =;
const bool kFalse =;

constexpr uint8_t CBORTypeToBitfield(const cbor::Value::Type type) {}

// ASSERT_TYPE_IS asserts that the type of |a| is |b|. This is used to ensure
// that the documented output types for elements of |Type| are correct.
#define ASSERT_TYPE_IS(a, b)

class Extractor {};

}  // namespace

namespace internal {

bool Extract(base::span<const void*> outputs,
             base::span<const StepOrByte<void>> steps,
             const cbor::Value::MapValue& map) {}

}  // namespace internal

bool ForEachPublicKeyEntry(
    const cbor::Value::ArrayValue& array,
    const cbor::Value& key,
    base::RepeatingCallback<bool(const cbor::Value&)> callback) {}

}  // namespace cbor_extract
}  // namespace device