public class

BinaryPatternVerifier

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.analyzer.BinaryPatternVerifier

Class Overview

A collection of binary patterns and a verifier for them. Determine if any one of the pattern matches a provided bytes buffer.

Summary

Public Constructors
BinaryPatternVerifier()
Public Methods
void addPattern(IBinaryPattern pattern)
void addPatterns(IBinaryPattern... patterns)
void addPatterns(Collection<IBinaryPattern> patterns)
void clear()
int getLongestSize()
Collection<IBinaryPattern> getPatterns()
IBinaryPattern verify(INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd, int patternSize)
IBinaryPattern verify(INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd)
IBinaryPattern verify(INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd, int patternSize, int processorMode)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public BinaryPatternVerifier ()

Public Methods

public void addPattern (IBinaryPattern pattern)

public void addPatterns (IBinaryPattern... patterns)

public void addPatterns (Collection<IBinaryPattern> patterns)

public void clear ()

public int getLongestSize ()

public Collection<IBinaryPattern> getPatterns ()

public IBinaryPattern verify (INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd, int patternSize)

public IBinaryPattern verify (INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd)

public IBinaryPattern verify (INativeCodeAnalyzer<?> gca, long address, byte[] buffer, int offset, int offsetEnd, int patternSize, int processorMode)

Parameters
patternSize if different from zero, the verification is only done with the patterns of the given size in bytes
processorMode restricted processor mode, matching getProcessorMode(). Use MODE_DEFAULT to test all modes or pick one to restrict verification.