blob: c729f5b188dbe8edf7d94782f7e1cd85eefa79ed [file] [log] [blame]
Samuel Huang06f1ae92018-03-13 18:19:34 +00001// 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
5#ifndef COMPONENTS_ZUCCHINI_CRC32_H_
6#define COMPONENTS_ZUCCHINI_CRC32_H_
7
8#include <stdint.h>
9
10namespace zucchini {
11
12// Calculates CRC-32 of the given range [|first|, |last|).
13uint32_t CalculateCrc32(const uint8_t* first, const uint8_t* last);
14
15} // namespace zucchini
16
17#endif // COMPONENTS_ZUCCHINI_CRC32_H_