all repos — mgba @ daaa2fa5236df5e8976e7e0ba7ac39e0d9233422

mGBA Game Boy Advance Emulator

src/util/crc32.h (view raw)

 1/* Copyright (c) 2013-2014 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef CRC32_H
 7#define CRC32_H
 8
 9#include "util/common.h"
10
11struct VFile;
12
13uint32_t doCrc32(const void* buf, size_t size);
14uint32_t updateCrc32(uint32_t crc, const void* buf, size_t size);
15uint32_t fileCrc32(struct VFile* file, size_t endOffset);
16
17#endif