Package ghidra.util.bytesearch
Class Match<T>
java.lang.Object
ghidra.util.bytesearch.Match<T>
- Type Parameters:
T- The specific implementation of the BytePattern that was used to create this match
Represents a match of a BytePattern at a given offset in a byte sequence.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Match
Construct a Match of a BytePattern that matched at a position in the input byte sequence.- Parameters:
pattern- the byte pattern that matchedstart- the location in the input byte sequence where the pattern match beginslength- the length of the matching sequence
-
-
Method Details
-
getLength
public int getLength()- Returns:
- length in bytes of the matched pattern
-
getStart
public long getStart()- Returns:
- offset of match in sequence of bytes
-
getPattern
- Returns:
- the sequence that was matched
-
toString
-
hashCode
public int hashCode() -
equals
-