* Array index operator * @this {!FieldModelArray} * @param {!number} index Array index * @returns {!FieldModel} Base field model value
(index)
| 2401 | * @returns {!FieldModel} Base field model value |
| 2402 | */ |
| 2403 | getItem (index) { |
| 2404 | console.assert(((this._buffer.offset + this.fbeOffset + this.fbeSize) <= this._buffer.size), 'Model is broken!') |
| 2405 | if (index >= this._size) { |
| 2406 | throw new Error('Index is out of bounds!') |
| 2407 | } |
| 2408 | |
| 2409 | this._model.fbeOffset = this.fbeOffset |
| 2410 | this._model.fbeShift(index * this._model.fbeSize) |
| 2411 | return this._model |
| 2412 | } |
| 2413 | |
| 2414 | /** |
| 2415 | * Check if the array is valid |