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