function getArrayClassForType(type) {
  switch (type) {
    case ARRAY_BUFFER:
      return Float32Array;
    case ELEMENT_ARRAY_BUFFER:
      return Uint32Array;
    default:
      return Float32Array;
  }
}
Returns a typed array constructor based on the given buffer type
@param {number} type Buffer type, either ARRAY_BUFFER or ELEMENT_ARRAY_BUFFER.
@return {Float32ArrayConstructor|Uint32ArrayConstructor} The typed array class to use for this buffer.