all repos — mgba @ 253719d7a14e0002c8e987beff4c6a6a3604704f

mGBA Game Boy Advance Emulator

include/mgba-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 <mgba-util/common.h>
10
11CXX_GUARD_START
12
13struct VFile;
14
15uint32_t doCrc32(const void* buf, size_t size);
16uint32_t updateCrc32(uint32_t crc, const void* buf, size_t size);
17uint32_t fileCrc32(struct VFile* file, size_t endOffset);
18
19CXX_GUARD_END
20
21#endif