template <int MAX_FIELD_ID, bool = false>

class TypedProtoDecoder

Defined at line 544 of file ../../third_party/perfetto/include/perfetto/protozero/proto_decoder.h

Template class instantiated by the auto-generated decoder classes declared in

xxx.pbzero.h files.

TODO(lalitm): the second argument exists for legacy reasons as targets in

G3 are (incorrectly) depending on internal implementation details of

Perfetto via checked-in protozero classes. Remove this when they fix this

incorrect dependency.

Public Methods

void TypedProtoDecoder<MAX_FIELD_ID, value-parameter-0-1> (const uint8_t * buffer, size_t length)

Defined at line 546 of file ../../third_party/perfetto/include/perfetto/protozero/proto_decoder.h

template <uint32_t FIELD_ID>
const Field & at ()

Defined at line 556 of file ../../third_party/perfetto/include/perfetto/protozero/proto_decoder.h

template <uint32_t FIELD_ID>
Field GetExtensionSlowly ()

Templated analog of TypedProtoDecoderBase::GetExtensionSlowly() for when

the field id is known at compile time (the common case: extension field

numbers come from generated kFooFieldNumber constants). Because

MAX_FIELD_ID is known here, the in-tree vs extension decision is made at

compile time: in-tree ids (

<

= MAX_FIELD_ID) take the at

<

>() fast path,

while extension ids beyond the in-tree range fall back to the base

class's buffer re-scan.

Defined at line 583 of file ../../third_party/perfetto/include/perfetto/protozero/proto_decoder.h

void TypedProtoDecoder<MAX_FIELD_ID, value-parameter-0-1> (TypedProtoDecoder<MAX_FIELD_ID, value-parameter-0-1> && other)

Defined at line 591 of file ../../third_party/perfetto/include/perfetto/protozero/proto_decoder.h

TypedProtoDecoder<MAX_FIELD_ID, value-parameter-0-1> & operator= (TypedProtoDecoder<MAX_FIELD_ID, value-parameter-0-1> && other)

Defined at line 596 of file ../../third_party/perfetto/include/perfetto/protozero/proto_decoder.h