Class BytePattern
A byte pattern which can be quickly matched, and extract an address.
public sealed class BytePattern
- Inheritance
-
BytePattern
Constructors
- BytePattern(AddressMeaning, bool, ReadOnlyMemory<byte>, ReadOnlyMemory<byte>)
- Constructs a BytePattern with the specified AddressMeaning and pattern.
- BytePattern(AddressMeaning, bool, ReadOnlyMemory<ushort>)
- Constructs a BytePattern with the specified AddressMeaning and pattern.
- BytePattern(AddressMeaning, bool, params ushort[])
- Constructs a BytePattern with the specified AddressMeaning and pattern.
- BytePattern(AddressMeaning, ReadOnlyMemory<byte>, ReadOnlyMemory<byte>)
- Constructs a BytePattern with the specified AddressMeaning and pattern.
- BytePattern(AddressMeaning, ReadOnlyMemory<ushort>)
- Constructs a BytePattern with the specified AddressMeaning and pattern.
- BytePattern(AddressMeaning, params ushort[])
- Constructs a BytePattern with the specified AddressMeaning and pattern.
Fields
- BAddressValue
- A placeholder which represents an address byte. For use in BytePattern(AddressMeaning, ReadOnlyMemory<byte>, ReadOnlyMemory<byte>), in the pattern argument, corresponding to an empty mask byte.
- BAnyRepeatingValue
- A placeholder which represents any number of bytes with any value. For use in BytePattern(AddressMeaning, ReadOnlyMemory<byte>, ReadOnlyMemory<byte>), in the pattern argument, corresponding to an empty mask byte.
- BAnyValue
- A placeholder which represents one byte with any value. For use in BytePattern(AddressMeaning, ReadOnlyMemory<byte>, ReadOnlyMemory<byte>), in the pattern argument, corresponding to an empty mask byte.
- SAddressValue
- A placeholder which represents an address byte. For use in BytePattern(AddressMeaning, bool, ReadOnlyMemory<ushort>).
- SAnyRepeatingValue
- A placeholder which represents any number of bytes with any value. For use in BytePattern(AddressMeaning, bool, ReadOnlyMemory<ushort>).
- SAnyValue
- A placeholder which represents one byte with any value. For use in BytePattern(AddressMeaning, bool, ReadOnlyMemory<ushort>).
Properties
- AddressBytes
- Gets the number of address bytes.
- AddressMeaning
- Gets the AddressMeaning associated with this BytePattern.
- FirstLiteralSegment
- Gets the first literal segment of this pattern.
- MinLength
- Gets the minimum length of this pattern.
- MustMatchAtStart
- Gets whether or not this pattern must match exactly at the start of the data being scanned.
Methods
- TryFindMatch(ReadOnlySpan<byte>, Span<byte>, out int, out int)
- Tries to find a match of this pattern within the provided span.
- TryFindMatch(ReadOnlySpan<byte>, out ulong, out int, out int)
- Tries to find a match of this pattern within the provided span.
- TryMatchAt(ReadOnlySpan<byte>, Span<byte>, out int)
- Tries to match this pattern over the provided span.
- TryMatchAt(ReadOnlySpan<byte>, out ulong, out int)
- Tries to match this pattern over the provided span.