new TubZipWriter(fileName)#

TubZipWriter Create zip archive. After finish working with archive creator must call freeNative() method to close file handel

Methods

addBuffer(fileName: String, byteCount: Number, source: TubBuffer)instance#

Add byteCount bytes from source to archive as fleName

Arguments info:

  • fileName: String

    name of file inside archive

  • byteCount: Number

    number of bytes to add starting from buffer position

addFile(fileName)instance#

Add specified file to archive

freeNative()instance#

Close writer