java.lang.Object | |
↳ | com.pnfsoftware.jeb.core.units.code.asm.analyzer.BinaryPattern |
Basic implementation of a binary pattern. The checks are bytes+mask only; The custom verification method simply returns true.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BinaryPattern(byte[] binary) | |||||||||||
BinaryPattern(byte[] binary, byte[] mask) | |||||||||||
BinaryPattern(byte[] binary, byte[] mask, int realStartOffset) | |||||||||||
BinaryPattern(byte[] binary, byte[] mask, int realStartOffset, int processorMode) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
byte[] |
getBinary()
Binary bytes.
| ||||||||||
Object |
getExtra()
Get some extra data associated to this pattern.
| ||||||||||
byte[] |
getMask()
Binary mask.
| ||||||||||
int |
getProcessorMode()
Valid processor mode for this Binary Pattern.
| ||||||||||
int |
getRealStartOffset()
The real start offset.
| ||||||||||
String | toString() | ||||||||||
boolean |
validate(INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd)
Final validation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pnfsoftware.jeb.core.units.code.asm.analyzer.IBinaryPattern
|
Binary bytes. Mandatory.
Get some extra data associated to this pattern. Client specific.
Valid processor mode for this Binary Pattern. Can be MODE_DEFAULT
if valid
in any mode.
The real start offset.
Final validation. Optional method.