diff --git a/libluna/include/luna/Buffer.h b/libluna/include/luna/Buffer.h index 554de586..54b0fc46 100644 --- a/libluna/include/luna/Buffer.h +++ b/libluna/include/luna/Buffer.h @@ -46,6 +46,11 @@ class Buffer return m_size; } + bool is_empty() const + { + return m_size == 0; + } + private: Buffer(u8* data, usize size);