"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CffIndexCount = void 0;
const bin_util_1 = require("@ot-builder/bin-util");
exports.CffIndexCount = {
    ...(0, bin_util_1.Read)((view, version) => {
        return version <= 1 ? view.uint16() : view.uint32();
    }),
    ...(0, bin_util_1.Write)((frag, count, version) => {
        if (version <= 1) {
            frag.uint16(count);
        }
        else {
            frag.uint32(count);
        }
    })
};
//# sourceMappingURL=index.count.js.map