Get the latest tech news
Show HN: Hexi – Modern header-only network binary serialisation for C++
Header-only, lightweight C++ library for binary streaming. Network data handling made easy peasy! - EmberEmu/Hexi
The design goals are ease of use, safety when dealing with untrusted data, a reasonable level of flexibility, and keeping overhead to a minimum. By default, Hexi will try to serialise basic structures such as our UserPacket if they meet requirements for being safe to directly copy the bytes. buffer_adaptor can wrap any contiguous container or view that provides data and size member functions and optionally resize() for write support.
Or read this on Hacker News