ardnew / byte-order

C++ constexpr header library to convert byte order of arbitrary types

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

byte-order

This library is implemented using only C++ header files containing fully constexpr-compatible methods.

Standard C++17 or newer is required.

Purpose

Types and methods are provided to enable compile-time and run-time reversal of the underlying byte representation in values of arbitrary integral type.

This project was intended for use with device drivers written for PlatformIO (example).

About

C++ constexpr header library to convert byte order of arbitrary types

License:MIT License


Languages

Language:C++ 100.0%