/// <summary>
 ///     Gets the byte[] pattern from string format patterns.
 /// </summary>
 /// <param name="pattern">The string pattern to search for. ?? is mask and space between each byte and mask.</param>
 /// <returns>An array of bytes.</returns>
 public static byte[] GetPatternBytes(this SerializablePattern pattern)
 {
     return(GetBytesFromDwordPattern(pattern.TextPattern));
 }
 /// <summary>
 ///     Gets the mask from a string based byte pattern to scan for.
 /// </summary>
 /// <param name="pattern">The string pattern to search for. ?? is mask and space between each byte and mask.</param>
 /// <returns>The mask from the pattern.</returns>
 public static string GetPatternMask(this SerializablePattern pattern)
 {
     return(GetMaskFromDwordPattern(pattern.TextPattern));
 }
示例#3
0
 /// <summary>
 ///     Performs a pattern scan from a <see cref="SerializablePattern" /> struct.
 /// </summary>
 /// <param name="pattern">The <see cref="SerializablePattern" /> instance to use.</param>
 /// <returns>A new <see cref="PatternScanResult" /> instance.</returns>
 public PatternScanResult FindPattern(SerializablePattern pattern)
 {
     return FindPattern(pattern.TextPattern, pattern.OffsetToAdd, pattern.RebaseResult);
 }