All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
hash.h
Go to the documentation of this file.
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_BASE_ARCH_HASH_H
8#define PXR_BASE_ARCH_HASH_H
9
12
13#include "pxr/pxr.h"
14#include "pxr/base/arch/api.h"
16
17PXR_NAMESPACE_OPEN_SCOPE
18
26ARCH_API uint32_t ArchHash(const char *data, size_t len);
28ARCH_API uint32_t ArchHash(const char *data, size_t len, uint32_t seed);
29
37ARCH_API uint64_t ArchHash64(const char *data, size_t len);
39ARCH_API uint64_t ArchHash64(const char *data, size_t len, uint64_t seed);
40
41PXR_NAMESPACE_CLOSE_SCOPE
42
43#endif // PXR_BASE_ARCH_HASH_H
ARCH_API uint32_t ArchHash(const char *data, size_t len)
Hash len bytes of data.
ARCH_API uint64_t ArchHash64(const char *data, size_t len)
Hash len bytes of data.
Define integral types.