One of the most powerful features of 010 Editor is the ability to parse
virtually any binary file using a Binary Template. Instead of browsing
through a long range of hex bytes as with traditional hex editors, Binary
Templates allow a file to be understood. Templates are easy to write
and can be used to completely parse any data format, such as BMP or ZIP files
(Templates for reading these files are included with 010 Editor).
A Binary Template looks similar to a C/C++ structure, but is actually run as a
program. Every time a variable is declared in a Template, that variable is
mapped to a set of hex bytes in a file. Data in the file can then be read or
written by modifying the variable. Because the Template is run as a program,
if,
for, or
while statements as well as functions or
complex expressions can be used.
When a Template is run, the defined variables can be edited using the Template Results,
as shown on the left. New Templates can be added to 010 Editor and can even
be configured to run automatically when a file is loaded.