public static unsafe int[] FindPositions(string byteFlags, byte[] bytes, int length = -1) { var ms = new MemorySearch(byteFlags); var result = ms.Find(bytes, length); if (!result.Success) { return(null); } return(result.ParamPositions.Select(p => p.Position).ToArray()); }
public static IntPtr[] FindPositions(string byteFlags, IntPtr ptr, uint length) { var ms = new MemorySearch(byteFlags); var result = ms.Find(ptr, length); if (!result.Success) { return(null); } return(result.ParamPositions.Select(p => ptr + p.Position).ToArray()); }