MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / negated

Method negated

src/common/settings.cpp:276–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274bool SettingsSpan::empty() const { return size == 0 || last_negated(); }
275bool SettingsSpan::last_negated() const { return size > 0 && data[size - 1].isFalse(); }
276size_t SettingsSpan::negated() const
277{
278 for (size_t i = size; i > 0; --i) {
279 if (data[i - 1].isFalse()) return i; // Return number of negated values (position of last false value)
280 }
281 return 0;
282}
283
284} // namespace common

Callers 2

GetSettingsListFunction · 0.80
ReadConfigFilesMethod · 0.80

Calls 1

isFalseMethod · 0.80

Tested by

no test coverage detected