template <typename T = Message>

class RootMessage

Defined at line 32 of file ../../third_party/perfetto/include/perfetto/protozero/root_message.h

Helper class to hand out messages using the default MessageArena.

Usage:

RootMessage

<perfetto

::protos::zero::MyMessage> msg;

msg.Reset(stream_writer);

msg.set_foo(...);

auto* nested = msg.set_nested();

Public Methods

void RootMessage<T> ()

Defined at line 34 of file ../../third_party/perfetto/include/perfetto/protozero/root_message.h

void RootMessage<T> (const RootMessage<T> & )

Disallow copy and move.

Defined at line 37 of file ../../third_party/perfetto/include/perfetto/protozero/root_message.h

RootMessage<T> & operator= (const RootMessage<T> & )

Defined at line 38 of file ../../third_party/perfetto/include/perfetto/protozero/root_message.h

void RootMessage<T> (RootMessage<T> && )

Defined at line 39 of file ../../third_party/perfetto/include/perfetto/protozero/root_message.h

RootMessage<T> & operator= (RootMessage<T> && )

Defined at line 40 of file ../../third_party/perfetto/include/perfetto/protozero/root_message.h

void Reset (ScatteredStreamWriter * writer)

Defined at line 42 of file ../../third_party/perfetto/include/perfetto/protozero/root_message.h