"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 Uint8ClampedArray0 extends Holder_1.Holder {
    constructor(system) {
        super({
            fi: ['init'],
            fo: ['array'],
            i: [],
            o: [],
        }, {
            output: {
                array: {
                    ref: true,
                },
            },
        }, system, _ids_1.ID_8BIT_UNSIGNED_CLAMPED_ARRAY_0);
    }
    f({ init }, done) {
        const _array = new Uint8ClampedArray(init);
        const array = (0, Array_1.wrapUint8Array)(_array, this.__system);
        done({
            array,
        });
    }
}
exports.default = Uint8ClampedArray0;
//# sourceMappingURL=index.js.map