chromium/net/third_party/quiche/src/quiche/quic/core/qpack/qpack_instructions.cc

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

#include "quiche/quic/core/qpack/qpack_instructions.h"

#include <limits>
#include <tuple>

#include "absl/strings/string_view.h"
#include "quiche/quic/platform/api/quic_logging.h"

namespace quic {

namespace {

// Validate that
//  * in each instruction, the bits of |value| that are zero in |mask| are zero;
//  * every byte matches exactly one opcode.
void ValidateLangague(const QpackLanguage* language) {}

}  // namespace

bool operator==(const QpackInstructionOpcode& a,
                const QpackInstructionOpcode& b) {}

const QpackInstruction* InsertWithNameReferenceInstruction() {}

const QpackInstruction* InsertWithoutNameReferenceInstruction() {}

const QpackInstruction* DuplicateInstruction() {}

const QpackInstruction* SetDynamicTableCapacityInstruction() {}

const QpackLanguage* QpackEncoderStreamLanguage() {}

const QpackInstruction* InsertCountIncrementInstruction() {}

const QpackInstruction* HeaderAcknowledgementInstruction() {}

const QpackInstruction* StreamCancellationInstruction() {}

const QpackLanguage* QpackDecoderStreamLanguage() {}

const QpackInstruction* QpackPrefixInstruction() {}

const QpackLanguage* QpackPrefixLanguage() {}

const QpackInstruction* QpackIndexedHeaderFieldInstruction() {}

const QpackInstruction* QpackIndexedHeaderFieldPostBaseInstruction() {}

const QpackInstruction* QpackLiteralHeaderFieldNameReferenceInstruction() {}

const QpackInstruction* QpackLiteralHeaderFieldPostBaseInstruction() {}

const QpackInstruction* QpackLiteralHeaderFieldInstruction() {}

const QpackLanguage* QpackRequestStreamLanguage() {}

// static
QpackInstructionWithValues QpackInstructionWithValues::InsertWithNameReference(
    bool is_static, uint64_t name_index, absl::string_view value) {}

// static
QpackInstructionWithValues
QpackInstructionWithValues::InsertWithoutNameReference(
    absl::string_view name, absl::string_view value) {}

// static
QpackInstructionWithValues QpackInstructionWithValues::Duplicate(
    uint64_t index) {}

// static
QpackInstructionWithValues QpackInstructionWithValues::SetDynamicTableCapacity(
    uint64_t capacity) {}

// static
QpackInstructionWithValues QpackInstructionWithValues::InsertCountIncrement(
    uint64_t increment) {}

// static
QpackInstructionWithValues QpackInstructionWithValues::HeaderAcknowledgement(
    uint64_t stream_id) {}

// static
QpackInstructionWithValues QpackInstructionWithValues::StreamCancellation(
    uint64_t stream_id) {}

// static
QpackInstructionWithValues QpackInstructionWithValues::Prefix(
    uint64_t required_insert_count) {}

// static
QpackInstructionWithValues QpackInstructionWithValues::IndexedHeaderField(
    bool is_static, uint64_t index) {}

// static
QpackInstructionWithValues
QpackInstructionWithValues::LiteralHeaderFieldNameReference(
    bool is_static, uint64_t index, absl::string_view value) {}

// static
QpackInstructionWithValues QpackInstructionWithValues::LiteralHeaderField(
    absl::string_view name, absl::string_view value) {}

}  // namespace quic