mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added MemoryBlock::isEmpty()
This commit is contained in:
parent
76993469ea
commit
b2b1685ca6
1 changed files with 3 additions and 0 deletions
|
|
@ -120,6 +120,9 @@ public:
|
|||
const char* end() const noexcept { return begin() + getSize(); }
|
||||
|
||||
//==============================================================================
|
||||
/** Returns true if the memory block has zero size. */
|
||||
bool isEmpty() const noexcept { return getSize() == 0; }
|
||||
|
||||
/** Returns the block's current allocated size, in bytes. */
|
||||
size_t getSize() const noexcept { return size; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue