chromium/third_party/abseil-cpp/absl/log/internal/proto.cc

// Copyright 2020 The Abseil Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "absl/log/internal/proto.h"

#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <cstring>

#include "absl/base/attributes.h"
#include "absl/base/config.h"
#include "absl/types/span.h"

namespace absl {
ABSL_NAMESPACE_BEGIN
namespace log_internal {
namespace {
void EncodeRawVarint(uint64_t value, size_t size, absl::Span<char> *buf) {}
constexpr uint64_t MakeTagType(uint64_t tag, WireType type) {}
}  // namespace

bool EncodeVarint(uint64_t tag, uint64_t value, absl::Span<char> *buf) {}

bool Encode64Bit(uint64_t tag, uint64_t value, absl::Span<char> *buf) {}

bool Encode32Bit(uint64_t tag, uint32_t value, absl::Span<char> *buf) {}

bool EncodeBytes(uint64_t tag, absl::Span<const char> value,
                 absl::Span<char> *buf) {}

bool EncodeBytesTruncate(uint64_t tag, absl::Span<const char> value,
                         absl::Span<char> *buf) {}

ABSL_MUST_USE_RESULT absl::Span<char> EncodeMessageStart(
    uint64_t tag, uint64_t max_size, absl::Span<char> *buf) {}

void EncodeMessageLength(absl::Span<char> msg, const absl::Span<char> *buf) {}

namespace {
uint64_t DecodeVarint(absl::Span<const char> *buf) {}

uint64_t Decode64Bit(absl::Span<const char> *buf) {}

uint32_t Decode32Bit(absl::Span<const char> *buf) {}
}  // namespace

bool ProtoField::DecodeFrom(absl::Span<const char> *data) {}

}  // namespace log_internal
ABSL_NAMESPACE_END
}  // namespace absl