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

# new TubZipWriter (fileName)

Arguments:
  • fileName:

    name of zip archive file

Methods

# addBuffer (fileNameString, byteCountNumber, sourceTubBuffer) instance

Add byteCount bytes from source to archive as fleName

Arguments:
  • fileName: String

    name of file inside archive

  • byteCount: Number

    number of bytes to add starting from buffer position

  • source: TubBuffer

# addFile (fileName) instance

Add specified file to archive

Arguments:
  • fileName:

# freeNative () instance

Close writer