Code Monkey home page Code Monkey logo

bred's Introduction

binary reader

A simple binary file reader that dumps the output to stdout

Installation

cargo install bred

Usage

Usage: bred [OPTIONS] [FILE]

Arguments:
  [FILE]  The file to read or stdin if not provided

Options:
  -l, --length <CHARACTERS>  Number of characters to print [default for hex: 8] [default: 64]
  -c, --chunk <BYTES>        Chunk size (faster but more memory usage) [default: 4096]
  -x, --hex                  Print in hex
  -G, --color                Print in color
  -s, --space                Explicitly display space as placeholder: (_)
  -b, --binary               Print in binary
  -h, --help                 Print help information
  -V, --version              Print version information

To use, input a file (or stdin is used), and add any desired options.
_____
The --length option changes how many characters to print (not including any formatting like offsets and borders).
The --chunk option changes how large the buffer array should be; the bigger it is, the faster but uses more memory.
The --hex option simply prints the input in hexadecimal.
The --color option uses colors to differentiate between letters (\0 are gray, others indicate how large the character code is, and orange is non-ascii characters). Note, make sure you use a terminal emulator that supports ANSI 256-color mode.
The --space option replaces all the spaces (0x20) with a green-colored _. This also affects the hex output.
The --binary option prints the input in binary

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.