Table of Contents

Class BytePatternCollection

Namespace
MonoMod.Core.Utils
Assembly
MonoMod.Core.dll
A collection of BytePatterns which can quickly try to match any contained pattern.
public sealed class BytePatternCollection
Inheritance
BytePatternCollection

Constructors

BytePatternCollection(params BytePattern?[])
Constructs a BytePatternCollection using the provided BytePatterns.
BytePatternCollection(ReadOnlyMemory<BytePattern?>)
Constructs a BytePatternCollection using the provided BytePatterns.

Properties

MaxAddressLength
The maximum address length.
MaxMinLength
The maximum value of MinLength within this collection.
MinLength
The minimum length that this collection can match.

Methods

GetEnumerator()
Gets an enumerator over all of the patterns in this collection.
TryFindMatch(ReadOnlySpan<byte>, Span<byte>, out BytePattern, out int, out int)
Tries to find a match of this pattern within the provided span.
TryFindMatch(ReadOnlySpan<byte>, out ulong, out BytePattern, out int, out int)
Tries to find a match of this pattern within the provided span.
TryMatchAt(ReadOnlySpan<byte>, Span<byte>, out BytePattern, out int)
Tries to match this pattern over the provided span.
TryMatchAt(ReadOnlySpan<byte>, out ulong, out BytePattern, out int)
Tries to match this pattern over the provided span.