Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
hashsum.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Roc Streaming authors
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
8
9//! @file roc_core/hashsum.h
10//! @brief Hash sum.
11
12#ifndef ROC_CORE_HASHSUM_H_
13#define ROC_CORE_HASHSUM_H_
14
15#include "roc_core/stddefs.h"
16
17namespace roc {
18namespace core {
19
20//! Hash type.
21typedef size_t hashsum_t;
22
23//! Compute hash for 16-bit integer.
25
26//! Compute hash for 16-bit integer.
28
29//! Compute hash for 32-bit integer.
31
32//! Compute hash for 32-bit integer.
34
35//! Compute hash for 64-bit integer.
37
38//! Compute hash for 64-bit integer.
40
41//! Compute hash for zero-terminated string.
42hashsum_t hashsum_str(const char* str);
43
44//! Compute hash for byte range.
45hashsum_t hashsum_mem(const void* data, size_t size);
46
47} // namespace core
48} // namespace roc
49
50#endif // ROC_CORE_HASHSUM_H_
hashsum_t hashsum_int(int16_t)
Compute hash for 16-bit integer.
hashsum_t hashsum_str(const char *str)
Compute hash for zero-terminated string.
hashsum_t hashsum_mem(const void *data, size_t size)
Compute hash for byte range.
size_t hashsum_t
Hash type.
Definition: hashsum.h:21
Root namespace.
Commonly used types and functions.