mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 09:17:35 +00:00
AK+Kernel: Make BitmapView read-only
This commit is contained in:
parent
850db15d66
commit
bf7a2ff941
3 changed files with 2 additions and 11 deletions
|
@ -32,14 +32,6 @@ public:
|
|||
VERIFY(index < m_size);
|
||||
return 0 != (m_data[index / 8] & (1u << (index % 8)));
|
||||
}
|
||||
void set(size_t index, bool value) const
|
||||
{
|
||||
VERIFY(index < m_size);
|
||||
if (value)
|
||||
m_data[index / 8] |= static_cast<u8>((1u << (index % 8)));
|
||||
else
|
||||
m_data[index / 8] &= static_cast<u8>(~(1u << (index % 8)));
|
||||
}
|
||||
|
||||
size_t count_slow(bool value) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue