setupPullBuffer method

void setupPullBuffer()

Sets up the pull buffer for sample data. This allocates memory based on the channel count and initializes the pull function. Throws: LSLException if buffer allocation fails.

Implementation

void setupPullBuffer() {
  // Initialize the pull function
  _pullFn = LSLMapper().streamPull(streamInfo);
  _buffer = _pullFn.createReusableBuffer(streamInfo.channelCount);
}