20 #ifndef MPD_MUSIC_BUFFER_HXX 21 #define MPD_MUSIC_BUFFER_HXX gcc_pure unsigned GetSize() const noexcept
Returns the total number of reserved chunks in this buffer.
void Return(MusicChunk *chunk) noexcept
Returns a chunk to the buffer.
An allocator for MusicChunk objects.
MusicChunk * Allocate() noexcept
Allocates a chunk from the buffer.
unsigned GetCapacity() const
bool IsEmptyUnsafe() const
Check whether the buffer is empty.
MusicBuffer(unsigned num_chunks) noexcept
Creates a new MusicBuffer object.