|
|||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
Binary TemplatesHelping you Understand Binary Data
|
|||||||||||||||||||||||||||
Writing Binary Templates
|
|||||||||||||||||||||||||||
Example TemplateThe following example demonstrates a simple Binary Template. This Template is designed for a binary file containing a series of employee records.
Templates are very flexible any may contain complex expressions including any of the regular C operators such as +, -, *, /, &, |, ^, ~, %, ++, --, ?:, etc. 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
|
|||||||||||||||||||||||||||
Struct OutliningAnother way of reading values from the Template variables is to position the mouse cursor over some bytes in the Hex Editor Window. If the bytes belong to a struct in the Template Results, lines will be drawn around the struct to indicate where the variables exist. This is called struct outlining. A hint popup will also be displayed which shows the value of the variable at that position. |
|||||||||||||||||||||||||||
Editing with ScriptsAnother way of editing variables produced from a Template is to use a Script. Scripts have a syntax similar to C and define variables in the regular way. For example, to double every employee's salary the following Script could be used:
The Script can automatically modify any of the variables defined in the Template. Undo and Redo are supported for Scripts as with any other editing operation. |
|||||||||||||||||||||||||||
Advanced Features010 Editor includes some additional functionality that make Templates even more powerful. For example:
|
|||||||||||||||||||||||||||
Template DownloadA number of example Templates are available in the online template repository, which can be accessed using the following link: To submit Templates to the archive, see the Submitting Files page. Feel free to submit any Templates you have which may be useful to other people. |
|||||||||||||||||||||||||||
For more information about 010 Editor see the 010 Editor Home Page, Online Tour or the Full Feature List.
|
|||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
|