chromium/third_party/perfetto/src/trace_processor/rpc/query_result_serializer.cc

/*
 * Copyright (C) 2020 The Android Open Source Project
 *
 * 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
 *
 *      http://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 "perfetto/ext/trace_processor/rpc/query_result_serializer.h"

#include <vector>

#include "perfetto/protozero/packed_repeated_fields.h"
#include "perfetto/protozero/proto_utils.h"
#include "perfetto/protozero/scattered_heap_buffer.h"
#include "src/trace_processor/iterator_impl.h"

#include "protos/perfetto/trace_processor/trace_processor.pbzero.h"

namespace perfetto {
namespace trace_processor {

namespace {

pu;
BatchProto;
ResultProto;

// The reserved field in trace_processor.proto.
static constexpr uint32_t kPaddingFieldId =;

uint8_t MakeLenDelimTag(uint32_t field_num) {}

}  // namespace

QueryResultSerializer::QueryResultSerializer(Iterator iter)
    :{}

QueryResultSerializer::~QueryResultSerializer() = default;

bool QueryResultSerializer::Serialize(std::vector<uint8_t>* buf) {}

bool QueryResultSerializer::Serialize(protos::pbzero::QueryResult* res) {}

void QueryResultSerializer::SerializeBatch(protos::pbzero::QueryResult* res) {}

void QueryResultSerializer::MaybeSerializeError(
    protos::pbzero::QueryResult* res) {}

void QueryResultSerializer::SerializeMetadata(
    protos::pbzero::QueryResult* res) {}

}  // namespace trace_processor
}  // namespace perfetto