cleanupBuffer method

void cleanupBuffer(
  1. Pointer<NativeType> buffer,
  2. int elements
)

Frees any per-element allocations flatListToBuffer made for the first elements values of buffer.

Only string chunks allocate per element; liblsl copies the data before the push returns, so this runs right after every push.

Implementation

void cleanupBuffer(Pointer<NativeType> buffer, int elements) {}