Journal article Open Access

General binary file parser version 1.0.1

Jeroen F.J. laros

DataCite XML Export

<?xml version='1.0' encoding='utf-8'?>
<identifier identifierType="DOI">10.5281/zenodo.1295625</identifier>
<creators>
<creator>
<creatorName>Jeroen F.J. laros</creatorName>
<affiliation>Leiden University Medical Center</affiliation>
</creator>
</creators>
<titles>
<title>General binary file parser version 1.0.1</title>
</titles>
<publisher>Zenodo</publisher>
<publicationYear>2018</publicationYear>
<subjects>
<subject>binary</subject>
<subject>parser</subject>
<subject>yaml</subject>
<subject>json</subject>
</subjects>
<dates>
<date dateType="Issued">2018-06-21</date>
</dates>
<language>en</language>
<resourceType resourceTypeGeneral="Text">Journal article</resourceType>
<alternateIdentifiers>
<alternateIdentifier alternateIdentifierType="url">https://zenodo.org/record/1295625</alternateIdentifier>
</alternateIdentifiers>
<relatedIdentifiers>
<relatedIdentifier relatedIdentifierType="DOI" relationType="IsVersionOf">10.5281/zenodo.1295624</relatedIdentifier>
</relatedIdentifiers>
<version>v1.0.1</version>
<rightsList>
<rights rightsURI="info:eu-repo/semantics/openAccess">Open Access</rights>
</rightsList>
<descriptions>
<description descriptionType="Abstract">&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;

</descriptions>
</resource>

33
2
views
All versions This version
Views 3333
Data volume 91.0 kB91.0 kB
Unique views 3232