Пример #1
0
        public List <int> SearchOffsets(OffsetSearchParams searchParams, Memory memory)
        {
            var results = _subSearch.SearchOffsets(searchParams, memory);

            if (results.Count != _expectedOffsetsCount)
            {
                return(new List <int>());
            }

            var selectedOffset = results[_selectOffsetOnIndex];

            FoundOffsets.Add(selectedOffset);
            return(new List <int> {
                selectedOffset
            });
        }
 public bool Search(OffsetSearchParams searchParams, Memory memory)
 {
     FoundOffsets = _offsetSearch.SearchOffsets(searchParams, memory);
     return(FoundOffsets.Count > 0);
 }