1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 11:17:44 +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:
Andreas Kling 2021-04-09 09:12:03 +02:00
parent 79ebcacce2
commit c268df79e6
2 changed files with 33 additions and 4 deletions

View file

@ -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); }