OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // A wrapper around ZLib's CRC function. | 5 // A wrapper around ZLib's CRC function. |
6 | 6 |
7 #ifndef RLZ_LIB_CRC32_H_ | 7 #ifndef RLZ_LIB_CRC32_H_ |
8 #define RLZ_LIB_CRC32_H_ | 8 #define RLZ_LIB_CRC32_H_ |
9 | 9 |
10 namespace rlz_lib { | 10 namespace rlz_lib { |
11 | 11 |
12 int Crc32(const unsigned char* buf, int length); | 12 int Crc32(const unsigned char* buf, int length); |
13 bool Crc32(const char* text, int* crc); | 13 bool Crc32(const char* text, int* crc); |
14 | 14 |
15 } // namespace rlz_lib | 15 } // namespace rlz_lib |
16 | 16 |
17 #endif // RLZ_LIB_CRC32_H_ | 17 #endif // RLZ_LIB_CRC32_H_ |
OLD | NEW |