Pixar Arch
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 "./api.h"
15#include "./inttypes.h"
16
17namespace pxr {
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
41} // namespace pxr
42
43#endif // PXR_ARCH_HASH_H
Define integral types.
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.