https://github.com/pizzart/bt2hexpat
bt2hexpat is a Rust program for translating 010 Editor Binary Templates into ImHex Patterns
https://github.com/pizzart/bt2hexpat
010editor imhex rust
Last synced: 8 days ago
JSON representation
bt2hexpat is a Rust program for translating 010 Editor Binary Templates into ImHex Patterns
- Host: GitHub
- URL: https://github.com/pizzart/bt2hexpat
- Owner: pizzart
- License: mit
- Created: 2026-04-18T01:17:59.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2026-04-18T12:21:58.000Z (3 months ago)
- Last Synced: 2026-04-18T14:29:14.351Z (3 months ago)
- Topics: 010editor, imhex, rust
- Language: Rust
- Homepage:
- Size: 31.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
bt2hexpat
## Description
bt2hexpat is a [010 Editor](https://www.sweetscape.com/010editor) Binary Template (`.bt`) to [ImHex](https://imhex.werwolv.net) Pattern (`.hexpat`) translator written in Rust.
## Supported Features
- 010 Datatypes
- Structs
- Unions
- Enums
- Structs with Arguments
- Struct Bitfields
- Struct/Enum Definitions inside blocks
- Struct/Enum Definitions as variable types
- Typedefs
- Function Definitions
- Expressions
- Statements
- Literals
- `bgcolor`, `comment`, `name`, `hidden` attributes
- Endian functions, and some of the cursor position, printing, string, color, and reading functions
- #defines
It does not currently support translating:
- Other 010 Attributes
- Other 010 Functions
- External DLL functions
> [!NOTE]
> The patterns generated by this program are not completely functional, and should only be used as a base.
> [!NOTE]
> The translation preserves all of the function calls, and does not preserve any comments.
## Usage
`bt2hexpat template.bt`
## Building
Requires Rust 1.95. Just do `cargo build --release` and you're done.
## Contributing
Contributions are welcome!