The image on the right displays a ZIP file opened in Editor. Most hex editors just display the raw hex bytes of the file 1 but Editor goes beyond this by showing the file parsed into a hierarchical data structure for easy editing 2. The data structure is make up of a series of variables and selecting a variable in the list shows which hex bytes correspond to that variable in the image, the variable 'frVersion' corresponds to the hex bytes '14 00'. If you are working with your own binary format, writing your own Binary Template is not difficult.
An integrated source code editor is provided with syntax highlighting pictured left. Example Template The following example demonstrates a simple Binary Template. This Template is designed for a binary file containing a series of employee records. In this case, the variable type would be mapped to the first four bytes of the file , version would be mapped to the next four bytes, numRecords the next two bytes and so on see the image below.
When executing the Template, any of the variables defined can be accessed as soon as they are declared. Here file. A large number of functions are available to modify how Templates run. See Template Download below for more examples of Templates.
Editing the Template Results Once a Template is run, the variables defined in the Template can be accessed in the Template Results panel displayed below the Hex Editor or in the Variables tab of the Inspector. The Template Results shows a full hierarchal view of the data as shown on the left. When a variable is selected from the list, the corresponding hex bytes will be selected in the main Hex Editor Window. Variables can be edited by clicking on the Value field, entering a new value and pressing Enter.
Another way of reading values from the Template variables is to position the mouse cursor over some bytes in the Hex Editor Window. A hint popup will be displayed that indicates the value of the variable at that position. A number of sophisticated tools are included with Editor for analyzing and editing binary files:. Unlike traditional hex editors which only display the raw hex bytes of a file 1 , Editor can also parse a file into a hierarchical structure using a Binary Template 2.
The results of running a Binary Template are much easier to understand and edit than using just the raw hex bytes. Powerful enough to parse almost any binary file format. Can be set to run automatically when files are opened. Templates may be shared and a list of templates for download is available in our Template Archive. Powerful Binary Comparison tool for analyzing byte-by-byte differences between two files.
Variables and arrays can be used. Includes calculator buttons for performing calculations using the mouse. Extremely flexible syntax allows virtually any file to be completely parsed. Integrated source code editor with syntax highlighting. Easily execute templates using the 'Run Template' section above each file. File can be read or modified using the created variable.
Position mouse over a byte in the hex editor and a hint popup will display the variable at that position. Use structs to parse data into a hierarchal structure. Use if-else, for, or while when defining data structures. Color and endian of variables can be specified. Support for typedefs. Support for bitfields. Includes support for enums - shows a drop-down list of all values when editing. Can modify any of the variables created in a Binary Template. Can be used to control the interface, open files, close files, etc.
Easily execute scripts using the 'Run Script' section above each file. Support for switch, case, break, and continue keywords. A watch can be almost any expression. Created bookmarks are persistent automatically saved.
A bookmark can be interpreted as a number of different data types or an array and edited using the Inspector. Endian and color can be specified for each bookmark. Bookmarks can now be defined using custom data types defined in Templates. Find or replace using a bar at the bottom of the editor. Find All in text files lists the whole line where the occurrence was found. Match case or whole word options for string searches. Find by a numeric tolerance i. Pad with zeros option when replacing strings.
Replace All command, or interactively step through all possible replacements. Search up or down. Keeps a history of previous finds and replaces. Support for regular expressions and capture groups. Goto again command which can be used for stepping through a file. Keeps a history of previous Goto commands. Set printing font and bytes per row.
0コメント