weave/third_party/nlio/repo/README.md
Nest Labs Memory Mapped I/O (NLIO) is designed to provide both C and C++ language bindings to macros and functions for:
- Determining, at both compile- and run-time, the byte ordering of the target system.
- Performing in place byte-swapping of compile-time constants via the C preprocessor as well as functions for performing byte-swapping by value and in place by pointer for 16-, 32-, and 64-bit types.
- Safely performing simple, efficient memory-mapped accesses, potentially to unaligned memory locations, with or without byte reordering, to 8-, 16-, 32-, and 64-bit quantities. Functions both with and without pointer management are also available.