1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-05 20:14:57 +00:00

AK: Make the Bitmap::size_in_bytes() member function public

It's annoying to calculate it when it's already a member function.
This commit is contained in:
AnotherTest 2021-02-14 14:49:08 +03:30 committed by Andreas Kling
parent ca731e2cdd
commit 4d40864b9d

View File

@ -82,6 +82,7 @@ public:
}
size_t size() const { return m_size; }
size_t size_in_bytes() const { return ceil_div(m_size, static_cast<size_t>(8)); }
bool get(size_t index) const
{
ASSERT(index < m_size);
@ -523,8 +524,6 @@ public:
static constexpr u32 max_size = 0xffffffff;
private:
size_t size_in_bytes() const { return ceil_div(m_size, static_cast<size_t>(8)); }
u8* m_data { nullptr };
size_t m_size { 0 };
bool m_owned { false };