dataToBufferPointer method

Pointer<NativeType> dataToBufferPointer(
  1. Iterable data
)

Writes data into the outlet's push buffer and returns the pointer.

Note: for string streams the per-element allocations made here are only released on the next push/cleanup or in destroy; prefer pushSample/pushSampleSync for string data.

Implementation

Pointer<NativeType> dataToBufferPointer(Iterable<dynamic> data) {
  _validateSampleData(data);
  // Set the sample data in the buffer
  _pushFn.listToBuffer(data, _bufferBang);
  return _bufferBang;
}