sketch out artifact cache hooks for file streaming layer

This commit is contained in:
Ryan Fleury
2025-09-23 11:58:00 -07:00
parent 6cdce22284
commit 141b6c1396
8 changed files with 215 additions and 209 deletions
+16
View File
@@ -2891,3 +2891,19 @@ u64_hash_from_str8(String8 string)
U64 result = u64_hash_from_seed_str8(5381, string);
return result;
}
internal U128
u128_hash_from_seed_str8(U64 seed, String8 string)
{
U128 result = {0};
XXH128_hash_t hash = XXH3_128bits_withSeed(string.str, string.size, seed);
MemoryCopy(&result, &hash, sizeof(result));
return result;
}
internal U128
u128_hash_from_str8(String8 string)
{
U128 result = u128_hash_from_seed_str8(5381, string);
return result;
}