Hexi: A Lightweight C++23 Library for Safe Binary Data Handling

2025-03-28
Hexi: A Lightweight C++23 Library for Safe Binary Data Handling

Hexi is a lightweight, header-only C++23 library for safely handling binary data from arbitrary sources (primarily network data). It bridges the gap between manually memcpying bytes and full-blown serialization libraries. Designed for ease of use, safety with untrusted data, flexibility, and minimal overhead, Hexi supports custom containers (including non-contiguous ones), exception handling, and bounds checking. Additional features include buffer types for binary files, static/dynamic buffers, and a thread-local block allocator.

Development Binary Data