gennyble / hext

A Binary File Markup Language
ISC License
23 stars 0 forks source link

Hxt: CLI option for inserting some hext into a file at an offset #10

Open gennyble opened 2 years ago

gennyble commented 2 years ago

Or maybe a subcommand. Akin to hxt insert_into <filename> at <offset> from <hxt_name>.

Or maybe just a regular subcommand kind of thing: hxt insert_into <file> <offset> <hxt>

Allow both?

gennyble commented 2 years ago

Is it possible to mutate the file in place without reading and writing the entire thing? I mean, it has to be. Maybe not platform agnostic. We can do it for known platforms and fall back to read/write the entire thing if we encounter one we don't know?