nativeWriteInto method

  1. @override
void nativeWriteInto(
  1. WaveC p
)
override

Writes all fields directly into the native struct reference p. For nested structs, use writeInto as well.

Implementation

@override
void nativeWriteInto(WaveC p) {
  p.frameCount = frameCount;
  p.sampleRate = sampleRate;
  p.sampleSize = sampleSize;
  p.channels = channels;

  if (p.data.address != 0) {
    assert(waveLength <= _WaveUtils._bufferLength(data, sampleSize));
    _WaveUtils._dataSetList(p.data, data, sampleSize, waveLength);
  }
}