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

#include <process_descriptor.pbzero.h>

Inheritance diagram for perfetto::protos::pbzero::ProcessDescriptor_Decoder:

Public Member Functions

 ProcessDescriptor_Decoder (const uint8_t *data, size_t len)
 
 ProcessDescriptor_Decoder (const std::string &raw)
 
 ProcessDescriptor_Decoder (const ::protozero::ConstBytes &raw)
 
bool has_pid () const
 
int32_t pid () const
 
bool has_process_name () const
 
::protozero::ConstChars process_name () const
 

Detailed Description

Definition at line 27 of file process_descriptor.pbzero.h.

Constructor & Destructor Documentation

◆ ProcessDescriptor_Decoder() [1/3]

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

Definition at line 31 of file process_descriptor.pbzero.h.

32 : TypedProtoDecoder(data, len) {}

◆ ProcessDescriptor_Decoder() [2/3]

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

Definition at line 33 of file process_descriptor.pbzero.h.

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

◆ ProcessDescriptor_Decoder() [3/3]

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

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

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

Member Function Documentation

◆ has_pid()

bool perfetto::protos::pbzero::ProcessDescriptor_Decoder::has_pid ( ) const
inline

Definition at line 38 of file process_descriptor.pbzero.h.

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

◆ has_process_name()

bool perfetto::protos::pbzero::ProcessDescriptor_Decoder::has_process_name ( ) const
inline

Definition at line 40 of file process_descriptor.pbzero.h.

40{ return at<6>().valid(); }

◆ pid()

int32_t perfetto::protos::pbzero::ProcessDescriptor_Decoder::pid ( ) const
inline

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

39{ return at<1>().as_int32(); }

◆ process_name()

::protozero::ConstChars perfetto::protos::pbzero::ProcessDescriptor_Decoder::process_name ( ) const
inline

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

41{ return at<6>().as_string(); }

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