2018-04-11 11:30:43 -05:00
|
|
|
// C port of byuu's \nall\crc32.hpp, which was released under GPLv3
|
|
|
|
// https://github.com/eai04191/beat/blob/master/nall/crc32.hpp
|
|
|
|
// Ported by Hyarion for use with VirtualFatFS
|
|
|
|
|
|
|
|
#pragma once
|
2019-05-02 20:35:53 -03:00
|
|
|
|
|
|
|
#include "common.h"
|
2018-04-11 11:30:43 -05:00
|
|
|
|
2018-06-13 09:15:05 -05:00
|
|
|
u32 crc32_adjust(u32 crc32, u8 input);
|
|
|
|
u32 crc32_calculate(u32 crc32, const u8* data, u32 length);
|
|
|
|
u32 crc32_calculate_from_file(const char* fileName, u32 offset, u32 length);
|