Standard C++ Library

This library contains standard C++ code, and is dependant on nothing other than the standard C/C++ library. Where posible I like to implement my common tools and utility code within the CyTools namespace.

CyCrc

A small, fast, single header, CRC engine. Working with or without tables. When used, tables can be compile-time or run-time calculated. Tables can also be left to the CRC engine to manage, in this case tables are created just-in-time. The main header defines CRC standards for 8, 16, 32, and 64-bit CRC's. A second header (optional) defines a number of other standards.

Downloads

CyCrc.zip Main CRC header only.
CyCrc-complete.zip CRC and extra definitions headers.
CyCrc-examples.zip Sample code showing usage of CyCrc.

CyEndian

Simple tool to detect system endianness, and data byte order conversion, in a single header. Defines an enum that holds values for big and little endianess, and system and network byte orders. A single templated function applies data conversion when in and out resolved to different orders.

Downloads

CyEndian.zip Endian, single header file.
CyEndian-examples.zip Examples of using CyEndian.