MySQL 8.4.2
Source Code Documentation
|
Abstraction functions over zlib/intrinsics. More...
#include <cassert>
#include <cstdint>
#include <limits>
#include <type_traits>
#include <zlib.h>
#include "my_compiler.h"
#include "my_config.h"
Go to the source code of this file.
Namespaces | |
namespace | mycrc32 |
Typedefs | |
using | ha_checksum = std::uint32_t |
Functions | |
template<class I > | |
std::uint32_t | mycrc32::IntegerCrc32 (std::uint32_t crc, I i) |
template<class PT > | |
std::uint32_t | mycrc32::PunnedCrc32 (std::uint32_t crc, const unsigned char *buf, size_t len) |
ha_checksum | my_checksum (ha_checksum crc, const unsigned char *pos, size_t length) |
Calculate a CRC32 checksum for a memoryblock. More... | |
Abstraction functions over zlib/intrinsics.
using ha_checksum = std::uint32_t |
|
inline |
Calculate a CRC32 checksum for a memoryblock.
crc | Start value for crc. |
pos | Pointer to memory block. |
length | Length of the block. |