Marshall Lib

Marshall Lib is a single source, single header library to marshall data in and out of character buffers. The library can marshall data in both aligned and unaligned formats and has a number of convenience functions to make complex marshalling easy.

Note on portability: While I tried to make Marshall Lib portable, it still needs a bit of work. I originally wrote this on a 32-bit intel machine and successfully ported it over to ARM but there’s still some runtime problems on 64-bit Mac OS X. I’ll address these when I use it next on the Mac but for now, I’ll publish it here so it can be of use to other people.

Download

marshall.c
marshall.h

Documentation

The documentation is available here.