Giter Club home page Giter Club logo

binfilereader's Introduction

binFileReader

Leitor de arquivos binários.

Program to visualize binary files, displays data in hex or can be decoded with custom settings from user.

Highly recommended be ran at fullscreen for better visualization.

If still having issues with formating, try changing byte grouping and bytes per line.

TODOs:

  • Fix the "agrupamento" mem leak.

  • Add option to "back out" form most options. As it is right now if you enter Header customization before settings things up and realize it, you can't back out for example.

  • Condense some options or move to a "config" submenu if it's not a very used option. (maybe toggle between Dec and Hex offsets don't deserve to be on the main menu, or headers customization should be already setup during decoding setup)

  • Adicionar opção de cabeçalho para dados decodificados. / Implement option to add a header for the decoded info.

  • Adicionar funcionalidade de agrupamento de bytes. / Implement byte grouping when displaying data.

  • Consider a different character display for chars between values 0 and 37 currently being displayed as a dot (".").

  • Organize code and simplify it before it becomes a bigger mess.

  • Set a limit for bytesPerLine so the user cant allocate an unreasonable ammount of memory.

  • Consider a mode that corresponds with the decoding being used. e.g.: If decoding looks like this: int/float/char/int, then byte grouping could switch to 4bytes/4bytes/1byte/4bytes and 13 bytes per line.

  • Fix issue that causes spacing and table border displaying incorrectly on linux.

Example:

CLI:

Compiling and opening a binReader:

gcc -o binReader binReader
./binReader

Opening a file:

file: dados.dat

Selecting byte grouping size:

option: 4
type group size: 4

Selecting how many bytes per line will be displayed:

option: 2
type number of bytes per line: 16

Decoding data:

option: 3
type for the 1st block: int
type for the 2nd block: int
type for the 3rd block: float
type for the 4th block: int

Setup custom decode column header

option: 6
fill in with a name for the column: int_value
fill in with a name for the column: next
fill in with a name for the column: float_value
fill in with a name for the column: status

Output should look like this.

binfilereader's People

Contributors

guilhermepiorno avatar

Watchers

 avatar

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.