mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 20:37:36 +00:00
AK: Add BitmapView::set_range_and_verify_that_all_bits_flip()
This function sets a range of bits to the same value while also verifying that all bits in the range get flipped in the process.
This commit is contained in:
parent
79ebcacce2
commit
c268df79e6
2 changed files with 33 additions and 4 deletions
|
@ -129,7 +129,7 @@ public:
|
|||
}
|
||||
|
||||
template<bool VALUE>
|
||||
void set_range(size_t start, size_t len) { return view().set_range<VALUE>(start, len); }
|
||||
void set_range(size_t start, size_t len) { return view().set_range<VALUE, false>(start, len); }
|
||||
void set_range(size_t start, size_t len, bool value) { return view().set_range(start, len, value); }
|
||||
|
||||
void fill(bool value) { view().fill(value); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue