summaryrefslogtreecommitdiffstats
path: root/courgette/crc.h
blob: b0c3323952e2c29bf69204a7bbd68c57172c9553 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) 2009 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.

#ifndef COURGETTE_CRC_H_
#define COURGETTE_CRC_H_

#include <stddef.h>
#include <stdint.h>

namespace courgette {

// Calculates Crc of the given buffer by calling CRC method in LZMA SDK
//
uint32_t CalculateCrc(const uint8_t* buffer, size_t size);

}  // namespace courgette
#endif  // COURGETTE_CRC_H_