mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-24 11:43:09 +00:00
19 lines
374 B
C
19 lines
374 B
C
|
#pragma once
|
||
|
|
||
|
#include <stdint.h>
|
||
|
#include <storage/storage.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
uint32_t crc32_calc_buffer(uint32_t crc, const void* buffer, size_t size);
|
||
|
|
||
|
typedef void (*FileCrcProgressCb)(const uint8_t progress, void* context);
|
||
|
|
||
|
uint32_t crc32_calc_file(File* file, const FileCrcProgressCb progress_cb, void* context);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|