Sven Kadak

Binary Writer

Simple CLI tool that appends binary data to a file

As I wanted to create binary files that require a specific format, but couldn't find a solution that was simple enough, I created my own binary writer.

It's a primitive program that appends predefined types to a file. Currently supported types are: u8, i8, u16, i16, u32, i32, u64, i64, str.

I'm also thinking of implementing additional operations like delete and replace, but as I myself don't need such functionality right now, I will add them when in need.

Usage

binw data.bin u8 123 str 'ding dong' i16 32145

xxd -b data.bin
01111011 01100100 01101001 01101110 01100111 00100000  {ding
01100100 01101111 01101110 01100111 10010001 01111101  dong.}

Technologies Used