1*a03ca8b9SKrzysztof Kosiński // Copyright 2017 The Chromium Authors. All rights reserved. 2*a03ca8b9SKrzysztof Kosiński // Use of this source code is governed by a BSD-style license that can be 3*a03ca8b9SKrzysztof Kosiński // found in the LICENSE file. 4*a03ca8b9SKrzysztof Kosiński 5*a03ca8b9SKrzysztof Kosiński #ifndef COMPONENTS_ZUCCHINI_CRC32_H_ 6*a03ca8b9SKrzysztof Kosiński #define COMPONENTS_ZUCCHINI_CRC32_H_ 7*a03ca8b9SKrzysztof Kosiński 8*a03ca8b9SKrzysztof Kosiński #include <stdint.h> 9*a03ca8b9SKrzysztof Kosiński 10*a03ca8b9SKrzysztof Kosiński namespace zucchini { 11*a03ca8b9SKrzysztof Kosiński 12*a03ca8b9SKrzysztof Kosiński // Calculates CRC-32 of the given range [|first|, |last|). 13*a03ca8b9SKrzysztof Kosiński uint32_t CalculateCrc32(const uint8_t* first, const uint8_t* last); 14*a03ca8b9SKrzysztof Kosiński 15*a03ca8b9SKrzysztof Kosiński } // namespace zucchini 16*a03ca8b9SKrzysztof Kosiński 17*a03ca8b9SKrzysztof Kosiński #endif // COMPONENTS_ZUCCHINI_CRC32_H_ 18