BSmallBuffer¶
The BSmallBuffer class provides small, efficient buffers for
MIDI and other small packet-based media types.
To use BSmallBuffers, create a BSmallBuffer, then
fill it with up to SmallBufferSizeLimit() bytes
of data. Then call SendBuffer(). You can then
immediately reuse the buffer.
How is this possible? BSmallBuffers don’t go in buffer groups.
The receiver immediately either processes the buffer (if it’s time) or
caches it until it’s needed, then recycles the buffer.
Note
If you’re writing a node, and receive a buffer with the
B_SMALL_BUFFER flag set, you must recycle the buffer in
your BufferReceived() function.