cleanupBuffer method
Frees any per-element allocations made by listToBuffer.
Most formats write values directly into buffer and need no cleanup;
only string samples allocate a native UTF-8 copy per element, which must
be released once the push call has returned (liblsl copies the data
before returning).
Implementation
void cleanupBuffer(Pointer<T> buffer, int count) {}