All Projects → megastep → bin2c

megastep / bin2c

Licence: other
Convert binary files to C arrays for easy inclusion with your code.

Programming Languages

c
50402 projects - #5 most used programming language
Roff
2310 projects

Labels

Projects that are alternatives of or similar to bin2c

extrude
🕵️ Analyse binaries for missing security features, information disclosure and more...
Stars: ✭ 51 (+142.86%)
Mutual labels:  binary
gucci
Templating on the command line with sprig.
Stars: ✭ 74 (+252.38%)
Mutual labels:  binary
BasicExercises
📘 Personal basic practice test playground.
Stars: ✭ 84 (+300%)
Mutual labels:  binary
go-delta
go-delta - A Go package and utility to generate and apply binary delta updates.
Stars: ✭ 25 (+19.05%)
Mutual labels:  binary
binstruct
Golang binary decoder for mapping data into the structure
Stars: ✭ 67 (+219.05%)
Mutual labels:  binary
literate-binary
Integrate handcrafted binary and documentation
Stars: ✭ 37 (+76.19%)
Mutual labels:  binary
fpbinary
Fixed point package for Python.
Stars: ✭ 30 (+42.86%)
Mutual labels:  binary
bin-version-cli
Get the version of a binary in semver format
Stars: ✭ 36 (+71.43%)
Mutual labels:  binary
surge
Simple, specialised, and efficient binary marshaling
Stars: ✭ 36 (+71.43%)
Mutual labels:  binary
GoogleMaps-SP
Swift Package for Google Maps iOS SDK
Stars: ✭ 105 (+400%)
Mutual labels:  binary
bmod
bmod parses binaries for modification/patching and disassembles machine code sections.
Stars: ✭ 12 (-42.86%)
Mutual labels:  binary
fastproto
FastProto is a binary data processing tool written in Java.
Stars: ✭ 65 (+209.52%)
Mutual labels:  binary
embd-go
embd-go is an embeddable command-line tool for embedding data files in Go source code, specially crafted for easy use with `go generate`.
Stars: ✭ 24 (+14.29%)
Mutual labels:  binary
hext
Markup language and tool for generating binary files
Stars: ✭ 23 (+9.52%)
Mutual labels:  binary
binaryapi
Binary.com & Deriv.com API for Python
Stars: ✭ 32 (+52.38%)
Mutual labels:  binary
jomini
Low level, performance oriented parser for save and game files from EU4, CK3, HOI4, Vic3, Imperator, and other PDS titles.
Stars: ✭ 40 (+90.48%)
Mutual labels:  binary
NALib
General purpose C sourcecode collection
Stars: ✭ 16 (-23.81%)
Mutual labels:  binary
cargo-binstall
Binary installation for rust projects
Stars: ✭ 421 (+1904.76%)
Mutual labels:  binary
vulnscan
A static binary vulnerability scanner
Stars: ✭ 47 (+123.81%)
Mutual labels:  binary
heroku-binary-buildpack
Heroku buildpack to execute binaries.
Stars: ✭ 29 (+38.1%)
Mutual labels:  binary

bin2c

Convert binary files to C arrays for easy inclusion within your existing code.

It sometimes makes sense to bypass the entire management of binary resources, especially for smaller or more sensitive data files. The data becomes available as a single array (or optionally as a NSString) that can be parsed in memory any way you like.

Building

The project was created in Xcode 5 on Mac OS X but the C file should compile on pretty much any system with an ANSI C compiler. It's also known to work on Gentoo with gcc 5.4.0.

Usage

bin2c [-i inputfile] [-o output.h] [-l line_len] [-t type] [-hs0] -a array_name -h: show a brief help message -s: prepend the 'static' keyword to the generated variables -0: when -t char, add a null-char at the end of the array

If no output file is specified, the C array will be sent on the standard output. Likewise, if no input file is given, data is read from the standard input.

  • array_name is used to specify the name of the variable.
  • line_len specifies how many bytes to put per line in the output (default 80).
  • type can be either char (default, C array of unsigned char), or nsstring (Objective-C NSString object).

License

Very liberal - do as you wish with it! Pull requests welcome.

Author

Stephane Peter Catloaf Software, LLC

http://github.com/megastep http://www.catloafsoft.com/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].