MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / buildHashForState

Method buildHashForState

native/desc/reuse/ReuseState.cpp:81–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 void ReuseState::buildHashForState() {
82 //build hash
83 std::string activityString = *(_activity.get());
84 uintptr_t activityHash = (std::hash<std::string>{}(activityString) * 31U) << 5;
85 activityHash ^= (combineHash<Widget>(_widgets, STATE_WITH_WIDGET_ORDER) << 1);
86 _hashcode = activityHash;
87 }
88
89 void ReuseState::buildActionForState() {
90 for (const auto &widget: _widgets) {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected