The tcDspBufPool class provides an automatically-sized semi-static buffer pool for buffers up to 64K bytes. When a request for a buffer of a given size is made, the next larger free list is checked for a free buffer. If none exist, a new buffer is created. When a buffer is released, it is not deleted, but returned to the free list.
This means that all buffers are created once, usually at or near initialization for most applications, and are reused without ever being deleted.
Internal buffer sizes range from 16 bytes to 64 Kbytes in powers of 4.
This is a simple example of tcDspBufPool creation and usage: