MCPcopy Create free account
hub / github.com/echQoQ/RustSL / sdbm_hash_lower

Function sdbm_hash_lower

src/utils/win_api.rs:72–79  ·  view source on GitHub ↗
(s: &[u8])

Source from the content-addressed store, hash-verified

70}
71
72fn sdbm_hash_lower(s: &[u8]) -> u32 {
73 let mut hash: u32 = 0;
74 for &c in s {
75 let c_lower = if c >= b'A' && c <= b'Z' { c + 32 } else { c };
76 hash = (c_lower as u32).wrapping_add(hash.wrapping_shl(6)).wrapping_add(hash.wrapping_shl(16)).wrapping_sub(hash);
77 }
78 hash
79}
80
81unsafe fn get_module_handle_custom_by_hash(module_hash: u32) -> isize {
82 let peb = get_peb();

Callers 2

load_libraryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected