"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SfntIoTableSink = void 0;
class SfntIoTableSink {
    constructor(sfnt) {
        this.sfnt = sfnt;
    }
    add(tag, data) {
        if (!data || !tag || !data.byteLength) {
            this.sfnt.tables.delete(tag);
        }
        else {
            this.sfnt.tables.set(tag, data);
        }
    }
}
exports.SfntIoTableSink = SfntIoTableSink;
//# sourceMappingURL=index.js.map