summaryrefslogtreecommitdiffstats
path: root/rlz/lib/crc32.h
blob: aded35588ee4b1d2cff930f8a6df512c921b31fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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_