Debian Codegraph @

Source/Core/Common/Hash.h

raw symbols SCIP
1 // Copyright 2008 Dolphin Emulator Project
2 // SPDX-License-Identifier: GPL-2.0-or-later
3
4 #pragma once
5
6 #include <cstddef>
7 #include <string_view>
8
9 #include "Common/CommonTypes.h"
10
11 namespace Common
12 {
13 u32 HashAdler32(const u8* data, size_t len);
14 // JUNK. DO NOT USE FOR NEW THINGS
15 u32 HashEctor(const u8* data, size_t len);
16
17 // Specialized hash function used for the texture cache
18 u64 GetHash64(const u8* src, u32 len, u32 samples);
19
20 u32 StartCRC32();
21 u32 UpdateCRC32(u32 crc, const u8* data, size_t len);
22 u32 ComputeCRC32(const u8* data, size_t len);
23 u32 ComputeCRC32(std::string_view data);
24 } // namespace Common