Crashpad
 
Loading...
Searching...
No Matches
crashpad::internal::IOSIntermediateDumpData Class Reference

A data object, consisting of a std::vector<uint8_t>. More...

#include "util/ios/ios_intermediate_dump_data.h"

Inheritance diagram for crashpad::internal::IOSIntermediateDumpData:
[legend]
Collaboration diagram for crashpad::internal::IOSIntermediateDumpData:
[legend]

Public Member Functions

 IOSIntermediateDumpData (const IOSIntermediateDumpData &)=delete
 
IOSIntermediateDumpDataoperator= (const IOSIntermediateDumpData &)=delete
 
 IOSIntermediateDumpData (std::vector< uint8_t > data)
 Constructs a new data object which owns a std::vector<uint8_t>.
 
Type GetType () const override
 Returns a type.
 
std::string GetString () const
 Returns data as a string.
 
template<typename T>
bool GetValue (T *value) const
 Copies the data into value if sizeof(T) matches data_.size().
 
const std::vector< uint8_t > & bytes () const
 
- Public Member Functions inherited from crashpad::internal::IOSIntermediateDumpObject
 IOSIntermediateDumpObject (const IOSIntermediateDumpObject &)=delete
 
IOSIntermediateDumpObjectoperator= (const IOSIntermediateDumpObject &)=delete
 

Additional Inherited Members

- Public Types inherited from crashpad::internal::IOSIntermediateDumpObject
enum class  Type
 The type of object stored in the intermediate dump. . More...
 

Detailed Description

A data object, consisting of a std::vector<uint8_t>.

Constructor & Destructor Documentation

◆ IOSIntermediateDumpData()

crashpad::internal::IOSIntermediateDumpData::IOSIntermediateDumpData ( std::vector< uint8_t > data)
inline

Constructs a new data object which owns a std::vector<uint8_t>.

Parameters
[in]dataA vector of uint8_t.

Member Function Documentation

◆ GetType()

IOSIntermediateDumpObject::Type crashpad::internal::IOSIntermediateDumpData::GetType ( ) const
overridevirtual

Returns a type.

Implements crashpad::internal::IOSIntermediateDumpObject.

◆ GetValue()

template<typename T>
bool crashpad::internal::IOSIntermediateDumpData::GetValue ( T * value) const
inline

Copies the data into value if sizeof(T) matches data_.size().

Parameters
[out]valueThe data to populate.
Returns
On success, returns true, otherwise returns false.

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