Buffer: Add an is_empty() method

This commit is contained in:
apio 2023-04-18 16:40:37 +02:00
parent e466c51e9f
commit 51eedf2b16
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -46,6 +46,11 @@ class Buffer
return m_size;
}
bool is_empty() const
{
return m_size == 0;
}
private:
Buffer(u8* data, usize size);