Simple C based binary packer / unpacker