File size: 707 Bytes
7c5b7bd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CborEncoderDag = void 0;
const CborEncoderStable_1 = require("./CborEncoderStable");
class CborEncoderDag extends CborEncoderStable_1.CborEncoderStable {
    writeUndef() {
        this.writeNull();
    }
    writeFloat(float) {
        if (float !== float)
            return this.writeNull();
        if (!Number.isFinite(float))
            return this.writeNull();
        this.writer.u8f64(0xfb, float);
    }
    writeTag(tag, value) {
        if (tag === 42)
            this.writeTagHdr(tag);
        this.writeAny(value);
    }
}
exports.CborEncoderDag = CborEncoderDag;
//# sourceMappingURL=CborEncoderDag.js.map