Skip to content

smashedpumpkin/bin2h

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bin2h

A small tool for converting binary data to a C-style uchar array for compiling straight into C/C++ code.

Builds with CMake & tested on Windows, MacOS.

Binaries for tested platforms available via Releases page.

Carried over from http://code.google.com/p/bin2h.



Interprets any file as plain binary data and dumps to a raw C/C++ array.
usage: bin2h <in-file> <out-file> <opt-args>

Valid optional arguments:
-id=<name> the C array is identified as "name". identifier is "data" if this argument is not present. bin2h does not check the identifier is valid in C/C++.
-ns=<namespace> causes the data to be wrapped in a namespace. no namespace is inserted if this argument is not used.```

About

A small tool for converting binary data to a C array. Carried over from https://code.google.com/archive/p/bin2h/

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors