(cap)
| 42 | const target = Math.max(16, Math.ceil(expected / 0.6)); |
| 43 | while (cap < target) cap *= 2; |
| 44 | this._alloc(cap); |
| 45 | } |
| 46 | |
| 47 | get size() { return this._size; } |
| 48 | |
| 49 | _alloc(cap) { |
| 50 | this._cap = cap; |
| 51 | this._mask = cap - 1; |
| 52 | this._qx = new Float64Array(cap); |
| 53 | this._qy = new Float64Array(cap); |
| 54 | this._qz = new Float64Array(cap); |
no outgoing calls
no test coverage detected