https://github.com/thefox/bintree
A small program written in Zig that represents binary data as a tree structure. It helps to explore and understand raw binary formats by displaying the data in a hierarchical, readable form.
https://github.com/thefox/bintree
Last synced: 9 months ago
JSON representation
A small program written in Zig that represents binary data as a tree structure. It helps to explore and understand raw binary formats by displaying the data in a hierarchical, readable form.
- Host: GitHub
- URL: https://github.com/thefox/bintree
- Owner: TheFox
- Created: 2025-03-26T18:50:28.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-02T13:03:32.000Z (about 1 year ago)
- Last Synced: 2025-06-17T11:50:41.868Z (about 1 year ago)
- Language: Zig
- Homepage: https://fox21.at
- Size: 150 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bintree
A program written in Zig that represents binary data as a tree structure. It helps to explore and understand raw binary formats by displaying the data in a hierarchical, readable form.
## Project Outlines
The project outlines as described in my blog post about [Open Source Software Collaboration](https://blog.fox21.at/2019/02/21/open-source-software-collaboration.html).
- The one and only purpose of this software is to represents binary data in the terminal, command-line.
## Dev
```bash
zig run -freference-trace=12 src/main.zig -- -mh -f tmp/test1.txt -vv -r s01
zig test src/xpath.zig --test-filter simple_xpath
```
```
02FFABCD /s02/sFF
02 select 0x02
FF select 0xFF
02FFFFFF /s02/g3
02 select 0x02
FFFFFF group next 3 bytes
02FFABCD /s02i2sAB
02 select 0x02
FFAB ignore next 2 bytes
CD select 0xCD
02FFABCD /.
02 select any byte
02FFABCD /..
02 select any byte
02FF select any byte
02FFABCD /./.
02
FF
02FFABCD /./..
02
FFAB
```