ocplib-endian
ocplib-endian is a library of optimised functions to read/write int16/32/64 ints from/to strings and bigarrays. When possible, it uses compiler optimizations to avoid expensive char-by-char operations, and almost completely avoid allocations of useless boxed values.