allocateInto method

  1. @override
void allocateInto(
  1. RaylibTemp temp,
  2. Pointer<WaveC> p,
  3. String key
)
override

Implementation

@override
void allocateInto(RaylibTemp temp, Pointer<WaveC> p, String key) {
  p.ref.frameCount = frameCount;
  p.ref.sampleRate = sampleRate;
  p.ref.sampleSize = sampleSize;
  p.ref.channels = channels;
  p.ref.data = temp.Short$.Array(data, key: '${key}_data').cast();
}