Aug 11, 2022
Binary to Header
bin2header [options] file
Print help information & exit.
Print version information & exit.
Output file name.
Header name. Default is file name with "." replaced by "_".
Read buffer chunk size (in bytes).
Default: 1048576 (1 megabyte)
Number of bytes to write per line.
Default: 12
Show data content as comment.
Position offset to begin reading file (in bytes).
Default: 0
Number of bytes to process (0 = all).
Default: 0
Stored data type bit length (8/16/32).
Default: 8
Set endianess to big endian for 16 & 32 bit data types.
Additionally store data in std::vector for C++.
Set end of line character (cr/lf/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.