"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Holder_1 = require("../../../../../../Class/Holder");
const Array_1 = require("../../../../../../wrap/Array");
const _ids_1 = require("../../../../../_ids");
class Uint8ClampedArray_ extends Holder_1.Holder {
    constructor(system) {
        super({
            fi: ['length'],
            fo: ['array'],
            i: [],
            o: ['done'],
        }, {
            output: {
                array: {
                    ref: true,
                },
            },
        }, system, _ids_1.ID_8BIT_UNSIGNED_CLAMPED_ARRAY);
    }
    f({ length }, done) {
        const _array = new Uint8ClampedArray(length);
        const array = (0, Array_1.wrapUint8Array)(_array, this.__system);
        done({
            array,
        });
    }
    b() {
        this._output.done.push(true);
    }
}
exports.default = Uint8ClampedArray_;
//# sourceMappingURL=index.js.map