Browse Source

Added MemoryBlock::isEmpty()

v6.1.6
ed 4 years ago
parent
commit
b2b1685ca6
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      modules/juce_core/memory/juce_MemoryBlock.h

+ 3
- 0
modules/juce_core/memory/juce_MemoryBlock.h 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; }


Loading…
Cancel
Save