crc.h 474 B

123456789101112131415161718
  1. // Copyright (c) 2009 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COURGETTE_CRC_H_
  5. #define COURGETTE_CRC_H_
  6. #include <stddef.h>
  7. #include <stdint.h>
  8. namespace courgette {
  9. // Calculates Crc of the given buffer by calling CRC method in LZMA SDK
  10. //
  11. uint32_t CalculateCrc(const uint8_t* buffer, size_t size);
  12. } // namespace courgette
  13. #endif // COURGETTE_CRC_H_