decord/source/437_VirtualArray.js

31 lines
750 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 437
// Function ID: 438
// Name: VirtualArray
// Dependencies: [42, 41]
// Module 437 (VirtualArray)
2026-08-24 06:08:38 +00:00
import _createClassDefault from "_createClass" /* 42 */;
import closure_0 from "_classCallCheck" /* 41 */;
2026-07-29 08:29:29 +00:00
class VirtualArray {
constructor(arg0) {
self = this;
2026-08-24 06:08:38 +00:00
tmp = closure_0(this, self);
2026-07-29 08:29:29 +00:00
items = [...global];
2026-08-24 06:08:38 +00:00
closure_0 = items;
2026-07-29 08:29:29 +00:00
this.size = items.length;
this.at = (arg0) => {
if (arg0 >= 0) {
if (arg0 < self.size) {
return items[arg0];
}
}
const rangeError = new RangeError("Cannot get index " + arg0 + " from a collection of size " + self.size);
throw rangeError;
};
return;
}
}
2026-08-24 06:08:38 +00:00
export const VirtualArray = _createClassDefault(VirtualArray);