getBuffer method

dynamic getBuffer()
override

Implementation

getBuffer() {
  var buffer = this.buffer;

  if (buffer == null) {
    var byteLength = this.getByteLength();

    buffer = new Float32Array(byteLength ~/ 4);

    this.buffer = buffer;
  }

  return buffer;
}