MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / ComputeModifiedUtf8Hash

Function ComputeModifiedUtf8Hash

Bcore/src/main/cpp/dex/utf.cc:195–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195uint32_t ComputeModifiedUtf8Hash(const char* chars) {
196 uint32_t hash = 0;
197 while (*chars != '\0') {
198 hash = hash * 31 + *chars++;
199 }
200 return static_cast<int32_t>(hash);
201}
202
203int CompareModifiedUtf8ToUtf16AsCodePointValues(const char* utf8, const uint16_t* utf16,
204 size_t utf16_length) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected