Buffer: Add an is_empty() method
This commit is contained in:
parent
e466c51e9f
commit
51eedf2b16
@ -46,6 +46,11 @@ class Buffer
|
|||||||
return m_size;
|
return m_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool is_empty() const
|
||||||
|
{
|
||||||
|
return m_size == 0;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Buffer(u8* data, usize size);
|
Buffer(u8* data, usize size);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user