WIP: write a bin2c adapter