template <Annotation::ValueSizeType MaxSize>

class StringAnnotation

Defined at line 285 of file ../../third_party/crashpad/src/client/annotation.h

An

The storage for the value is allocated by the annotation and the template

parameter

controls the maxmium length for the value.

It is expected that the string value be valid UTF-8, although this is not

validated.

Public Methods

void StringAnnotation<MaxSize> (const char[] name)

Constructs a new StringAnnotation with the given

Parameters

name [in] The Annotation name.

Defined at line 295 of file ../../third_party/crashpad/src/client/annotation.h

void StringAnnotation<MaxSize> (const StringAnnotation<MaxSize> & )

Defined at line 298 of file ../../third_party/crashpad/src/client/annotation.h

StringAnnotation<MaxSize> & operator= (const StringAnnotation<MaxSize> & )

Defined at line 299 of file ../../third_party/crashpad/src/client/annotation.h

void StringAnnotation<MaxSize> (const char[] name, Tag tag)

Constructs a new StringAnnotation with the given

This constructor takes the ArrayInitializerTag for use when

initializing a C array of annotations. The main constructor is

explicit and cannot be brace-initialized. As an example:

Parameters

name [in] The Annotation name.
tag [in] A constructor tag.

Code

                                        
                                               static crashpad::StringAnnotation<32> annotations[] = {
                                                 {"name-1", crashpad::StringAnnotation<32>::Tag::kArray},
                                                 {"name-2", crashpad::StringAnnotation<32>::Tag::kArray},
                                                 {"name-3", crashpad::StringAnnotation<32>::Tag::kArray},
                                               };
                                        
                                    

Defined at line 317 of file ../../third_party/crashpad/src/client/annotation.h

void Set (const char * value)

Sets the Annotation's string value.

Parameters

value [in] The `NUL`-terminated C-string value.

Defined at line 323 of file ../../third_party/crashpad/src/client/annotation.h

void Set (std::string_view string)

Sets the Annotation's string value.

Parameters

string [in] The string value.

Defined at line 332 of file ../../third_party/crashpad/src/client/annotation.h

const std::string_view value ()

Defined at line 343 of file ../../third_party/crashpad/src/client/annotation.h

Enumerations

enum Tag
Name Value
kArray 0

A constructor tag that enables braced initialization in C arrays.

Defined at line 290 of file ../../third_party/crashpad/src/client/annotation.h