diff options
Diffstat (limited to 'rlz/lib/crc32.h')
-rw-r--r-- | rlz/lib/crc32.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/rlz/lib/crc32.h b/rlz/lib/crc32.h new file mode 100644 index 0000000..aded355 --- /dev/null +++ b/rlz/lib/crc32.h @@ -0,0 +1,17 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. +// +// A wrapper around ZLib's CRC function. + +#ifndef RLZ_LIB_CRC32_H_ +#define RLZ_LIB_CRC32_H_ + +namespace rlz_lib { + +int Crc32(const unsigned char* buf, int length); +bool Crc32(const char* text, int* crc); + +} // namespace rlz_lib + +#endif // RLZ_LIB_CRC32_H_ |