/*
All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
*/
import{estimateNumberMemory as t}from"../../../../../core/memoryEstimations.js";import{StaticBitSet as s}from"./StaticBitSet.js";class a{constructor(t){this._valid=s.create(t),this._data=new Array(t)}get usedMemory(){let s=this._valid.usedMemory;if(this._data.length>0){const a="string"==typeof this._data[0]?64:t;s+=this._data.length*a}return s}has(t){return this._valid.has(t)}set(t,s){this._valid.set(t),this._data[t]=s}get(t){return this._data[t]}}export{a as FeatureSetCache};
