#include "src/ipc/buffered_frame_deserializer.h"
#include <algorithm>
#include <cinttypes>
#include <type_traits>
#include <utility>
#include "perfetto/base/logging.h"
#include "perfetto/ext/base/utils.h"
#include "protos/perfetto/ipc/wire_protocol.gen.h"
namespace perfetto {
namespace ipc {
namespace {
constexpr size_t kHeaderSize = …;
}
BufferedFrameDeserializer::BufferedFrameDeserializer(size_t max_capacity)
: … { … }
BufferedFrameDeserializer::~BufferedFrameDeserializer() = default;
BufferedFrameDeserializer::ReceiveBuffer
BufferedFrameDeserializer::BeginReceive() { … }
bool BufferedFrameDeserializer::EndReceive(size_t recv_size) { … }
std::unique_ptr<Frame> BufferedFrameDeserializer::PopNextFrame() { … }
void BufferedFrameDeserializer::DecodeFrame(const char* data, size_t size) { … }
std::string BufferedFrameDeserializer::Serialize(const Frame& frame) { … }
}
}