The square brackets are just sets of bytes to match. This is just like regular expressions, and is the same in the binary signatures. You can define as many bytes to match as you like, not just two as in your example.
[09 0C 0D 20] matches whitespace: tab, cr, lf and space.
Regards
Matt
In PRONOM, an internal signature is composed of one or more byte sequences, each comprising a continuous sequence of hexadecimal bytes values and, optionally, regular expressions. A signature byte sequence is modelled by describing its starting position within a bitstream and its value.Â
The starting position can be one of two basic types:Â
Absolute: The byte sequence starts at a fixed position within the bitstream. The position is described as an offset from either the beginning or the end of the bitstream. The byte sequence can therefore be located by moving to the specified offset, counting from either the beginning of file or end of file position. If counting from either the EOF position, the offset is to the final byte in the sequence.Â
Variable: The byte sequence can start at any offset within the bitstream. The byte sequence can be located by examining the entire bitstream.Â
The value of the byte sequence is defined as a sequence of hexadecimal values, optionally incorporating any of the following regular expressions:Â
--
You received this message because you are subscribed to the Google Groups "droid-list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to droid-list+...@googlegroups.com.
To post to this group, send an email to droid...@googlegroups.com.
Hi Ross,
Yes, you're right.  I had forgotten that the square brackets in binary signatures were limited to ranges of values, not an arbitrary set of values.
Should be easy enough to add one day, since the underlying technology is already there, and exposed for container signatures.
Cheers
Matt
You received this message because you are subscribed to a topic in the Google Groups "droid-list" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/droid-list/m5VRiN-iSWI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to droid-list+...@googlegroups.com.
To post to this group, send email to droid...@googlegroups.com.