new TubZipWriter(fileName)#

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


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


Add specified file to archive


Close writer