The library provides integer and floating point types and conversion functions
for portable byte ordering regardless of processor endianness. Although the primary uses are for file or network I/O, it is also useful for unaligned integers or floats, or for 3, 5,
6, and 7 byte integers. The library's predecessors have been in use for thirty years and developed independently multiple times.
The repository is
https://github.com/boostorg/endian