ToyGine2 26.2.0
Game Engine for retro consoles
Loading...
Searching...
No Matches
hashes.hpp File Reference

Table-driven CRC-8, CRC-16, and CRC-32 over byte buffers. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  toy
 Root namespace containing all engine modules.

Functions

uint8_t toy::crc8 (const void *src, size_t size, uint8_t crc=0x00) noexcept
 Computes Dallas/Maxim CRC-8 (polynomial 0x31, reflected 8-bit CRC).
uint16_t toy::crc16 (const void *src, size_t size, uint16_t crc=0x0000) noexcept
 Computes CRC-16-IBM / ARC (polynomial 0x8005, reflected).
uint32_t toy::crc32 (const void *src, size_t size, uint32_t crc=0x00000000) noexcept
 Computes CRC-32 per IEEE 802.3 / Ethernet (polynomial 0x04C11DB7, reflected).

Detailed Description

Table-driven CRC-8, CRC-16, and CRC-32 over byte buffers.

Declares crc8(), crc16(), and crc32() in namespace toy.

Note
Included by core.hpp; do not include this file directly.