libosmscout 0.1
Loading...
Searching...
No Matches
Crc32.cpp File Reference
#include <osmscout/io/Crc32.h>
#include <array>
#include <cstddef>
#include <cstdint>
#include <fstream>
#include <ios>
#include <string>
#include <vector>

Namespaces

namespace  osmscout
 Original source: https://github.com/philipperemy/easy-encryption/blob/master/b64.h licensed under terms of MIT license.
 

Functions

bool osmscout::ComputeFileCrc32 (const std::string &path, uint32_t &crc32Value)
 Computes the CRC-32 of the given file.
 
uint32_t osmscout::Crc32 (const void *data, size_t size, uint32_t crc=0)
 Computes the CRC-32 (IEEE 802.3, polynomial 0x04C11DB7, reflected representation 0xEDB88320) of the given data.