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

Function FindHashFunction32

native/thirdpart/flatbuffers/hash.h:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103inline NamedHashFunction<uint32_t>::HashFunction FindHashFunction32(
104 const char *name) {
105 std::size_t size = sizeof(kHashFunctions32) / sizeof(kHashFunctions32[0]);
106 for (std::size_t i = 0; i < size; ++i) {
107 if (std::strcmp(name, kHashFunctions32[i].name) == 0) {
108 return kHashFunctions32[i].function;
109 }
110 }
111 return nullptr;
112}
113
114inline NamedHashFunction<uint64_t>::HashFunction FindHashFunction64(
115 const char *name) {

Callers 2

ParseFieldMethod · 0.85
ParseHashMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected