Line | |
---|
1 | /*
|
---|
2 | Copyright (C) 2005-2006 Feeling Software Inc.
|
---|
3 | MIT License: http://www.opensource.org/licenses/mit-license.php
|
---|
4 | */
|
---|
5 | /*
|
---|
6 | Based on the FS Import classes:
|
---|
7 | Copyright (C) 2005-2006 Feeling Software Inc
|
---|
8 | Copyright (C) 2005-2006 Autodesk Media Entertainment
|
---|
9 | MIT License: http://www.opensource.org/licenses/mit-license.php
|
---|
10 | */
|
---|
11 |
|
---|
12 | /**
|
---|
13 | @file FUCrc32.h
|
---|
14 | This file contains the CRC-32 hashing functions.
|
---|
15 | */
|
---|
16 |
|
---|
17 | #ifndef _FU_CRC32_H_
|
---|
18 | #define _FU_CRC32_H_
|
---|
19 |
|
---|
20 | /**
|
---|
21 | CRC-32 hashing functions.
|
---|
22 | CRC-32 is a commonly used hashing mechanism for strings.
|
---|
23 |
|
---|
24 | @ingroup FUtils
|
---|
25 | */
|
---|
26 | namespace FUCrc32
|
---|
27 | {
|
---|
28 | /** A CRC32 hash value. */
|
---|
29 | typedef uint32 crc32;
|
---|
30 |
|
---|
31 | /** Hashes a string.
|
---|
32 | @param text The string to hash.
|
---|
33 | @return The 32-bit hash value. */
|
---|
34 | crc32 FCOLLADA_EXPORT CRC32(const fstring& text);
|
---|
35 | crc32 FCOLLADA_EXPORT CRC32(const fchar* text); /**< See above. */
|
---|
36 | crc32 FCOLLADA_EXPORT CRC32(const string& text); /**< See above. */
|
---|
37 | crc32 FCOLLADA_EXPORT CRC32(const char* text); /**< See above. */
|
---|
38 | };
|
---|
39 |
|
---|
40 | #endif // _FU_CRC32_H_
|
---|
41 |
|
---|
Note: See
TracBrowser
for help on using the repository browser.