MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / optInt32

Method optInt32

TactilityCore/Source/Bundle.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51bool Bundle::optInt32(const std::string& key, int32_t& out) const {
52 auto entry = this->entries.find(key);
53 if (entry != std::end(this->entries) && entry->second.type == Type::Int32) {
54 out = entry->second.value_int32;
55 return true;
56 } else {
57 return false;
58 }
59}
60
61bool Bundle::optInt64(const std::string& key, int64_t& out) const {
62 auto entry = this->entries.find(key);

Callers 4

getValueMethod · 0.45
BundleTest.cppFile · 0.45
tt_preferences_opt_int32Function · 0.45
tt_bundle_opt_int32Function · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected