1 #ifndef OSMIUM_OSM_CRC_ZLIB_HPP 2 #define OSMIUM_OSM_CRC_ZLIB_HPP 57 unsigned long m_crc32 = ::crc32(0,
nullptr, 0);
62 m_crc32 = ::crc32(m_crc32, &byte, 1U);
65 void process_bytes(
const void* buffer, std::size_t byte_count) noexcept {
66 m_crc32 = ::crc32(m_crc32, reinterpret_cast<const unsigned char *>(buffer), static_cast<unsigned int>(byte_count));
77 #endif // OSMIUM_OSM_CRC_ZLIB_HPP void process_byte(const unsigned char byte) noexcept
Definition: crc_zlib.hpp:61
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
unsigned long checksum() const noexcept
Definition: crc_zlib.hpp:69
unsigned long m_crc32
Definition: crc_zlib.hpp:57
Definition: crc_zlib.hpp:55
void process_bytes(const void *buffer, std::size_t byte_count) noexcept
Definition: crc_zlib.hpp:65