/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../../../chunks/_rollupPluginBabelHelpers"],(function(t,e){"use strict";let r=function(){function t(t,e,r=0,i,s){this.TypedArrayConstructor=t,this.elementCount=1;const f=this.TypedArrayConstructor;void 0===i&&(i=f.BYTES_PER_ELEMENT);const u=0===e.byteLength?0:r;this.typedBuffer=null==s?new f(e,u):new f(e,u,(s-r)/f.BYTES_PER_ELEMENT),this.typedBufferStride=i/f.BYTES_PER_ELEMENT,this.count=Math.ceil(this.typedBuffer.length/this.typedBufferStride),this.stride=this.typedBufferStride*this.TypedArrayConstructor.BYTES_PER_ELEMENT}var r=t.prototype;return r.sliceBuffer=function(t,e,r=this.count-e){const i=this.typedBuffer.byteOffset+e*this.stride;return new t(this.buffer,i,this.stride,i+r*this.stride)},r.get=function(t){return this.typedBuffer[t*this.typedBufferStride]},r.set=function(t,e){this.typedBuffer[t*this.typedBufferStride]=e},e._createClass(t,[{key:"buffer",get:function(){return this.typedBuffer.buffer}}]),t}();r.ElementCount=1,t.BufferViewScalarImpl=r,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
