MCPcopy Create free account
hub / github.com/chromium/crashpad / GetCount

Method GetCount

client/simple_string_dictionary.h:119–127  ·  view source on GitHub ↗

\brief Returns the number of active key/value pairs. The upper limit for this is \a NumEntries.

Source from the content-addressed store, hash-verified

117 //! \brief Returns the number of active key/value pairs. The upper limit for
118 //! this is \a NumEntries.
119 size_t GetCount() const {
120 size_t count = 0;
121 for (size_t i = 0; i < num_entries; ++i) {
122 if (entries_[i].is_active()) {
123 ++count;
124 }
125 }
126 return count;
127 }
128
129 //! \brief Given \a key, returns its corresponding value.
130 //!

Callers

nothing calls this directly

Calls 1

is_activeMethod · 0.45

Tested by

no test coverage detected