Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
perfetto::protos::pbzero::ClockSnapshot_Decoder Class Reference

#include <clock_snapshot.pbzero.h>

Inheritance diagram for perfetto::protos::pbzero::ClockSnapshot_Decoder:

Public Member Functions

 ClockSnapshot_Decoder (const uint8_t *data, size_t len)
 
 ClockSnapshot_Decoder (const std::string &raw)
 
 ClockSnapshot_Decoder (const ::protozero::ConstBytes &raw)
 
bool has_clocks () const
 
::protozero::RepeatedFieldIterator<::protozero::ConstBytes > clocks () const
 
bool has_primary_trace_clock () const
 
int32_t primary_trace_clock () const
 

Detailed Description

Definition at line 30 of file clock_snapshot.pbzero.h.

Constructor & Destructor Documentation

◆ ClockSnapshot_Decoder() [1/3]

perfetto::protos::pbzero::ClockSnapshot_Decoder::ClockSnapshot_Decoder ( const uint8_t *  data,
size_t  len 
)
inline

Definition at line 34 of file clock_snapshot.pbzero.h.

35 : TypedProtoDecoder(data, len) {}

◆ ClockSnapshot_Decoder() [2/3]

perfetto::protos::pbzero::ClockSnapshot_Decoder::ClockSnapshot_Decoder ( const std::string &  raw)
inlineexplicit

Definition at line 36 of file clock_snapshot.pbzero.h.

37 : TypedProtoDecoder(reinterpret_cast<const uint8_t*>(raw.data()),
38 raw.size()) {}

◆ ClockSnapshot_Decoder() [3/3]

perfetto::protos::pbzero::ClockSnapshot_Decoder::ClockSnapshot_Decoder ( const ::protozero::ConstBytes &  raw)
inlineexplicit

Definition at line 39 of file clock_snapshot.pbzero.h.

40 : TypedProtoDecoder(raw.data, raw.size) {}

Member Function Documentation

◆ clocks()

::protozero::RepeatedFieldIterator<::protozero::ConstBytes > perfetto::protos::pbzero::ClockSnapshot_Decoder::clocks ( ) const
inline

Definition at line 42 of file clock_snapshot.pbzero.h.

42 {
43 return GetRepeated<::protozero::ConstBytes>(1);
44 }

◆ has_clocks()

bool perfetto::protos::pbzero::ClockSnapshot_Decoder::has_clocks ( ) const
inline

Definition at line 41 of file clock_snapshot.pbzero.h.

41{ return at<1>().valid(); }

◆ has_primary_trace_clock()

bool perfetto::protos::pbzero::ClockSnapshot_Decoder::has_primary_trace_clock ( ) const
inline

Definition at line 45 of file clock_snapshot.pbzero.h.

45{ return at<2>().valid(); }

◆ primary_trace_clock()

int32_t perfetto::protos::pbzero::ClockSnapshot_Decoder::primary_trace_clock ( ) const
inline

Definition at line 46 of file clock_snapshot.pbzero.h.

46{ return at<2>().as_int32(); }

The documentation for this class was generated from the following file: