Skip to content

Partakithware/B2P-ChunkEdit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

B2P - ChunkEdit

B2P - ChunkEdit is a simple, GTK-based binary file viewer and editor built using C++. It allows you to inspect and modify files in fixed-size chunks, either in a structured grid layout or as raw hexadecimal text.

This tool is part of a planned broader Bin2Play (B2P) toolkit. (This is just the first concept)


Features

  • ✅ Open and read any binary file
  • ✅ View file contents in chunked format (custom chunk size)
  • ✅ Edit binary data in two modes:
    • Grid view — edit each byte individually with a tooltip showing the file offset
    • Raw hex view — edit the full chunk as a hex string
  • ✅ Navigate between chunks with Prev/Next buttons
  • ✅ Adjustable chunk size (1 to 4096 bytes)
  • ✅ Save changes to a new file via "Save As"
  • ✅ Chunk-level tracking to ensure only modified parts are written (Flawed in several ways) Flaw 1 - First off if you edit a chunk, you have to save the file while in that chunk, this is not how it's intended to be. Flaw 2 - When switching between RAW/GRID it will reset what you changed, not intended to be this way, which means if you edit in RAW - Save new file before switching, same with GRID.

This is an early concept, so not all has been done/updated.

Screenshots

Chunk navigation and editing:

FreshlyOpened

Grid view:

Grid view

Raw view:

Raw view


Requirements

  • GTK4
  • gtkmm-4
  • C++17 or later

Build Instructions

meson setup build
meson compile -C build
./build/chunkedit

About

Binary/Hex-Editor per chunk. Prototype early quick build. Edit any file, per chunk. Grid/Raw.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published