/*
 * 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
 */


class MyZipEntry {
    
    constructor(_zip) {
        this.zip = null;
        this.name = null;
        this.data = null;
        this.uncompressDataSize = 0;
        this.pos = 0;
        this.compressDataSize = 0;
        this.encrypted = false;
        this.isDirectory = false;
        this.method = 0;
        this.zip = _zip;
    }
    
    toString() {
        return (this.name + " (" + this.uncompressDataSize + ")");
    }
    
    getData() {
        if (this.data !== null) 
            return this.data;
        return this.zip.unzip(this);
    }
}


module.exports = MyZipEntry