
R-Studio Manual51
© 2002...2013 R-Tools Technology Inc.
This section can contain an unlimited number of the Signature elements.If there are several Signature
elements, that means that all those signatures are simultaneously present in the file. Such signatures should have
different offset attributes and they should not overlap.
Element Signature
The element contains a string value of the file signature consisting of ASCII characters and hex bytes in the \xhh
format, where hh is a hexadecimal byte code. If that is not a hexadecimal number after \x, \x are treated as a
part of the string section of the signature
Attributes:
Decimal offset for the signature
Decimal number specifying the number of
signatures of the same length. Used when
several signatures of the same length starting
with the same offset can be present in a file. In
this case they should be sequentially written in
the element, and the size attribute specifies
the length of signature. count*size should
be equal to the number of bytes in the
element.
If only one signature can be on this offset,
count should be equal to "1", and size should
be equal to the length (the number of bytes) of
the signature.
Decimal number specifying the number of
bytes in the signature.
Default: the
number of bytes
written in the
element.
Specifies from where the offset is calculated.
If end, the offset is from the end of file to the
first byte of the signature. That is, if the
signature is two bytes long, the offset value
should be 2.
Version 2 of file type description
Signature file example
<?xml version="1.0" encoding="utf-8"?>
<FileTypeList version="2.0">
<FileType id="5626" group="_Test" description="Test file" extension="tst">
<Begin combine="and">
<Signature from="0" to="20">ABC</Signature>
<Signature offset="1">CDEFG</Signature>
<AND>
<Signature offset="0">DE</Signature>
Komentarze do niniejszej Instrukcji