mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-16 01:12:15 +03:00
engine_blob: add_range() member function
This commit is contained in:
committed by
Matthew Barr
parent
10aa806d67
commit
6013fb1546
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2016, Intel Corporation
|
||||
* Copyright (c) 2016-2017, Intel Corporation
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions are met:
|
||||
@@ -106,6 +106,11 @@ public:
|
||||
return offset;
|
||||
}
|
||||
|
||||
template<typename Range>
|
||||
u32 add_range(const Range &range) {
|
||||
return add(begin(range), end(range));
|
||||
}
|
||||
|
||||
u32 add_iterator(const std::vector<mmbit_sparse_iter> &iter) {
|
||||
auto cache_it = cached_iters.find(iter);
|
||||
if (cache_it != cached_iters.end()) {
|
||||
|
||||
Reference in New Issue
Block a user