crc32.h 478 B

1234567891011121314151617
  1. // Copyright 2017 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 COMPONENTS_ZUCCHINI_CRC32_H_
  5. #define COMPONENTS_ZUCCHINI_CRC32_H_
  6. #include <stdint.h>
  7. namespace zucchini {
  8. // Calculates CRC-32 of the given range [|first|, |last|).
  9. uint32_t CalculateCrc32(const uint8_t* first, const uint8_t* last);
  10. } // namespace zucchini
  11. #endif // COMPONENTS_ZUCCHINI_CRC32_H_