Archived
1
Fork 0
This repository has been archived on 2025-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
libxiv/include/crc32checksum.h

10 lines
292 B
C
Raw Normal View History

2022-03-15 15:33:57 -04:00
#pragma once
#include <cstdint>
#include <cstddef>
// adapted from https://gist.github.com/timepp/1f678e200d9e0f2a043a9ec6b3690635
namespace CRC32 {
void generate_table(uint32_t(&table)[256]);
uint32_t update(uint32_t (&table)[256], uint32_t initial, const void* buf, size_t len);
}