()
| 3346 | return this._strides; |
| 3347 | } |
| 3348 | _read() { |
| 3349 | if (this.data) { |
| 3350 | const length = this.dtype.itemsize * this.size; |
| 3351 | if (typeof this.data === 'string') { |
| 3352 | this.data = this._unescape(this.data, length); |
| 3353 | if (this.data.length !== length) { |
| 3354 | throw new python.Error('Invalid string array data size.'); |
| 3355 | } |
| 3356 | } else if (this.data.length !== length) { |
| 3357 | // throw new python.Error('Invalid array data size.'); |
| 3358 | } |
| 3359 | } |
| 3360 | } |
| 3361 | _unescape(token, size) { |
| 3362 | const length = token.length; |
| 3363 | const a = new Uint8Array(length); |
no test coverage detected