1
0
Fork 0
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:
ed 2021-04-22 17:34:25 +01:00
parent 76993469ea
commit b2b1685ca6

View file

@ -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; }