writeInto method
Writes all fields directly into the native struct reference p.
For nested structs, use writeInto as well.
Implementation
@override
void writeInto(WaveC p) {
p.frameCount = frameCount;
p.sampleRate = sampleRate;
p.sampleSize = sampleSize;
p.channels = channels;
if (p.data.address != 0) {
assert(dataLength <= data.length);
for (int i = 0; i < dataLength; i++) {
p.data.cast<Short>()[i] = data[i];
}
}
}