Journal article Open Access

# General binary file parser version 1.0.1

Jeroen F.J. laros

### Dublin Core Export

<?xml version='1.0' encoding='utf-8'?>
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
<dc:creator>Jeroen F.J. laros</dc:creator>
<dc:date>2018-06-21</dc:date>
<dc:description>This library provides general binary file parsing by interpreting documentation of a file structure and data types. By default, it supports basic data types like big-endian and little-endian integers, floats and doubles, variable length (delimited) strings, maps and bit fields (flags) and it can iterate over sub structures. Other data types are easily added.

The file structure and the types are stored in nested dictionaries. The structure is separated from the types, this way multiple file formats using the same types (within one project for example) can be easily supported without much duplication.

The design of the library is such that all operations can be reversed. This means that fully functional binary editing is possible using this implementation; first use the reader to convert a binary file to a serialised dictionary representation, this representation is easily edited using a text editor, and then use the writer to convert back to binary.

This idea is implemented in two languages; Python and JavaScript. All main development is done in Python. We chose YAML as our preferred serialised dictionary format, but other serialisation formats (JSON for example) can be used too.

<dc:identifier>https://zenodo.org/record/1295625</dc:identifier>
<dc:identifier>10.5281/zenodo.1295625</dc:identifier>
<dc:identifier>oai:zenodo.org:1295625</dc:identifier>
<dc:language>eng</dc:language>
<dc:relation>doi:10.5281/zenodo.1295624</dc:relation>
<dc:rights>info:eu-repo/semantics/openAccess</dc:rights>
<dc:source>JOSS - The Journal of Open Source Software 3(26) 766</dc:source>
<dc:subject>binary</dc:subject>
<dc:subject>parser</dc:subject>
<dc:subject>yaml</dc:subject>
<dc:subject>json</dc:subject>
<dc:title>General binary file parser version 1.0.1</dc:title>
<dc:type>info:eu-repo/semantics/article</dc:type>
<dc:type>publication-article</dc:type>
</oai_dc:dc>

33
2
views