/*
 * SDK Pullenti Unitext, version 4.33, fabruary 2026. Copyright (c) 2013-2026, Pullenti. All rights reserved. 
 * Non-Commercial Freeware and Commercial Software. 
 * This class is generated using the converter UniSharping (www.unisharping.ru) from Pullenti C# project. 
 * The latest version of the code is available on the site www.pullenti.ru
 */

const Utils = require("./../../../unisharp/Utils");

const PdfObject = require("./PdfObject");

class PdfIntValue extends PdfObject {
    
    constructor() {
        super();
        this.val = 0;
    }
    
    getDouble() {
        return this.val;
    }
    
    toStringEx(lev) {
        return this.val.toString();
    }
    
    isSimple(lev) {
        return true;
    }
    
    write(s) {
        let buf = Utils.encodeString("ASCII", (String(this.val)));
        s.write(buf, 0, buf.length);
    }
    
    static _new229(_arg1) {
        let res = new PdfIntValue();
        res.val = _arg1;
        return res;
    }
}


module.exports = PdfIntValue