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 it, ie 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)
[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)

Parameters
patternSize if different from zero, the verification is only done with the patterns of the given size in bytes

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