mirror of
https://github.com/horsicq/Detect-It-Easy.git
synced 2026-06-24 01:54:08 +00:00
Update file(s): 2024-08-20
This commit is contained in:
parent
e0b40d44a4
commit
66ff5ecc8e
1 changed files with 11 additions and 2 deletions
|
|
@ -7,14 +7,23 @@ This is a description of the Binary class. This class is used when no other clas
|
|||
**bool compare(QString sSignature,qint64 nOffset=0)** Compares bytes with a hexadecimal string signature.
|
||||
|
||||
The signature may contain both lowercase and uppercase hexadecimal digits.
|
||||
Spaces are skipped, and . and ? represent any digit.
|
||||
Spaces are skipped, **AA BB** = **AABB**
|
||||
Text may be matched by using single quotes. For example **"01'Test'01"**.
|
||||
|
||||
There are two additional symbols:
|
||||
There are additional symbols:
|
||||
|
||||
* '#' for absolute jump (e.g. "68########55")
|
||||
* '$' for relative jump (e.g. "E8$$$$$$$$55")
|
||||
|
||||
| Parameter | Description |
|
||||
|-----------|--------------------------------------------------|
|
||||
| .. | Represent any byte |
|
||||
| ?? | Represent any byte |
|
||||
| ** | Not null |
|
||||
| %% | ANSI |
|
||||
| !% | Not ANSI |
|
||||
| _% | Not ANSI and not null |
|
||||
|
||||
```
|
||||
if(Binary.compare("'7z'BCAF271C")) // compare file header (nOffset=0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue