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
-3
View File
@@ -206,9 +206,6 @@ async_thread_entry_point(void *params)
#if defined(FILE_STREAM_H)
fs_async_tick();
#endif
#if defined(CTRL_CORE_H)
ctrl_async_tick();
#endif
#if defined(TEXTURE_CACHE_H)
tex_async_tick();
#endif
+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;
}
+2
View File
@@ -449,5 +449,7 @@ internal U64 str8_deserial_read_block(String8 string, U64 off, U64 size, Stri
internal U64 u64_hash_from_seed_str8(U64 seed, String8 string);
internal U64 u64_hash_from_str8(String8 string);
internal U128 u128_hash_from_seed_str8(U64 seed, String8 string);
internal U128 u128_hash_from_str8(String8 string);
#endif // BASE_STRINGS_H