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

#include <clock_snapshot.pbzero.h>

Inheritance diagram for perfetto::protos::pbzero::ClockSnapshot_Clock_Decoder:

Public Member Functions

 ClockSnapshot_Clock_Decoder (const uint8_t *data, size_t len)
 
 ClockSnapshot_Clock_Decoder (const std::string &raw)
 
 ClockSnapshot_Clock_Decoder (const ::protozero::ConstBytes &raw)
 
bool has_clock_id () const
 
uint32_t clock_id () const
 
bool has_timestamp () const
 
uint64_t timestamp () const
 

Detailed Description

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

Constructor & Destructor Documentation

◆ ClockSnapshot_Clock_Decoder() [1/3]

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

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

118 : TypedProtoDecoder(data, len) {}

◆ ClockSnapshot_Clock_Decoder() [2/3]

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

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

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

◆ ClockSnapshot_Clock_Decoder() [3/3]

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

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

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

Member Function Documentation

◆ clock_id()

uint32_t perfetto::protos::pbzero::ClockSnapshot_Clock_Decoder::clock_id ( ) const
inline

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

125{ return at<1>().as_uint32(); }

◆ has_clock_id()

bool perfetto::protos::pbzero::ClockSnapshot_Clock_Decoder::has_clock_id ( ) const
inline

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

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

◆ has_timestamp()

bool perfetto::protos::pbzero::ClockSnapshot_Clock_Decoder::has_timestamp ( ) const
inline

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

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

◆ timestamp()

uint64_t perfetto::protos::pbzero::ClockSnapshot_Clock_Decoder::timestamp ( ) const
inline

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

127{ return at<2>().as_uint64(); }

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