Skip to content

Commit

Permalink
Yet ANOTHER overload for ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroMemes committed Oct 15, 2024
1 parent a82c85f commit 0c966d8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/libhat/Scanner.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,16 @@ namespace hat {
find_all_pattern(beginIt, endIt, std::back_inserter(results), signature, alignment, hints);
return results;
}

template<detail::byte_input_range In>
constexpr auto find_all_pattern(
In&& rangeIn,
const signature_view signature,
const scan_alignment alignment = scan_alignment::X1,
const scan_hint hints = scan_hint::none
) noexcept -> std::vector<detail::result_type_for<std::ranges::iterator_t<In>>> {
return find_all_pattern(std::ranges::begin(rangeIn), std::ranges::end(rangeIn), signature, alignment, hints);
}
}

namespace hat::experimental {
Expand Down

0 comments on commit 0c966d8

Please sign in to comment.