Aug 6, 2022
Binary to Header
bin2header [options] file
Print help information & exit.
Print version information & exit.
Set output file name.
Set header name.
Set the buffer chunk size (in bytes).
Default: 1048576 (1 megabyte)
Set number of bytes per line.
Default: 12
Show data content as comment.
Start reading at given offset from file beginning.
Number of bytes to process.
Store data using 8, 16, or 32 bit integer types.
Default: 8
Swap endianess for 16 or 32 bit integer types.
Additionally store data in std::vector for C++.
Set end of line character (cr, lf, or crlf).
Default: lf
bin2header takes any file as an argument and converts its binary data into a source header file for use in C/C++ applications. The data is stored as a character array.