"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Encoder = void 0;
const Encoder_1 = require("../compact/Encoder");
const util_1 = require("@jsonjoy.com/json-pack/lib/msgpack/util");
class Encoder {
    constructor() {
        this.encoder = new Encoder_1.Encoder();
    }
    encode(doc) {
        const json = this.encoder.encode(doc);
        const uint8 = util_1.encoderFull.encode(json);
        return uint8;
    }
}
exports.Encoder = Encoder;
//# sourceMappingURL=Encoder.js.map