Class CodeAnalyzerUtil
java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.analyzer.CodeAnalyzerUtil
Utility methods for the generic code analyzer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IBinaryPattern
checkBinaryPattern
(INativeCodeAnalyzer<?> analyzer, BinaryPatternVerifier verifier, long address, long addressMax) static IBinaryPattern
checkBinaryPattern
(INativeCodeAnalyzer<?> analyzer, BinaryPatternVerifier verifier, long address, long addressMax, int patternSize, int processorMode) Convenience method to check if a given binary pattern verifier matches at the start of the given memory range.
-
Constructor Details
-
CodeAnalyzerUtil
public CodeAnalyzerUtil()
-
-
Method Details
-
checkBinaryPattern
public static IBinaryPattern checkBinaryPattern(INativeCodeAnalyzer<?> analyzer, BinaryPatternVerifier verifier, long address, long addressMax) -
checkBinaryPattern
public static IBinaryPattern checkBinaryPattern(INativeCodeAnalyzer<?> analyzer, BinaryPatternVerifier verifier, long address, long addressMax, int patternSize, int processorMode) Convenience method to check if a given binary pattern verifier matches at the start of the given memory range.- Parameters:
analyzer
-verifier
-address
-addressMax
-patternSize
-IBinaryPattern
binary size restrictionprocessorMode
- processor mode restriction- Returns:
- pattern if there is a match, null otherwise
-