An open API service indexing awesome lists of open source software.

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

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!