#include "perfetto/ext/protozero/proto_ring_buffer.h"
#include "perfetto/base/logging.h"
#include "perfetto/ext/base/paged_memory.h"
#include "perfetto/protozero/proto_utils.h"
namespace protozero {
namespace {
constexpr size_t kGrowBytes = …;
inline ProtoRingBuffer::Message FramingError() { … }
ProtoRingBuffer::Message TryReadProtoMessage(const uint8_t* start,
const uint8_t* end) { … }
}
RingBufferMessageReader::RingBufferMessageReader()
: … { … }
RingBufferMessageReader::~RingBufferMessageReader() = default;
void RingBufferMessageReader::Append(const void* data_void, size_t data_len) { … }
RingBufferMessageReader::Message RingBufferMessageReader::ReadMessage() { … }
ProtoRingBuffer::ProtoRingBuffer() = default;
ProtoRingBuffer::~ProtoRingBuffer() = default;
ProtoRingBuffer::Message ProtoRingBuffer::TryReadMessage(const uint8_t* start,
const uint8_t* end) { … }
}