updateCache method

dynamic updateCache(
  1. dynamic data
)

Implementation

updateCache(data) {
  var cache = this.cache;

  // if ( data is Float32Array && cache.length != data.length ) {
  //   this.cache = Float32Array( data.length );
  // }

  copyArray(cache, data);
}