Pixar Arch 0.25.8
Loading...
Searching...
No Matches
hash.h
Go to the documentation of this file.
1// Copyright 2016 Pixar
2//
3// Licensed under the terms set forth in the LICENSE.txt file available at
4// https://openusd.org/license.
5//
6// Modified by Jeremy Retailleau.
7
8#ifndef PXR_ARCH_HASH_H
9#define PXR_ARCH_HASH_H
10
13
14#include "pxr/arch/pxr.h"
15#include "pxr/arch/api.h"
16#include "pxr/arch/inttypes.h"
17
18ARCH_NAMESPACE_OPEN_SCOPE
19
27ARCH_API uint32_t ArchHash(const char *data, size_t len);
29ARCH_API uint32_t ArchHash(const char *data, size_t len, uint32_t seed);
30
38ARCH_API uint64_t ArchHash64(const char *data, size_t len);
40ARCH_API uint64_t ArchHash64(const char *data, size_t len, uint64_t seed);
41
42ARCH_NAMESPACE_CLOSE_SCOPE
43
44#endif // PXR_ARCH_HASH_H
Define integral types.
uint32_t ArchHash(const char *data, size_t len)
Hash len bytes of data.
uint64_t ArchHash64(const char *data, size_t len)
Hash len bytes of data.