mz_zip_writer_add_file function

  1. @Native<mz_bool Function(Pointer<mz_zip_archive>, Pointer<Char>, Pointer<Char>, Pointer<Void>, mz_uint16, mz_uint)>(ffi.Pointer<mz_zip_archive>, ffi.Pointer<ffi.Char>, ffi.Pointer<ffi.Char>, ffi.Pointer<ffi.Void>, mz_uint16, mz_uint)>()
int mz_zip_writer_add_file(
  1. Pointer<mz_zip_archive> pZip,
  2. Pointer<Char> pArchive_name,
  3. Pointer<Char> pSrc_filename,
  4. Pointer<Void> pComment,
  5. int comment_size,
  6. int level_and_flags,
)

Adds the contents of a disk file to an archive. This function also records the disk file's modified time into the archive. / / level_and_flags - compression level (0-10, see MZ_BEST_SPEED, MZ_BEST_COMPRESSION, etc.) logically OR'd with zero or more mz_zip_flags, or just set to MZ_DEFAULT_COMPRESSION.

Implementation

@ffi.Native<
  mz_bool Function(
    ffi.Pointer<mz_zip_archive>,
    ffi.Pointer<ffi.Char>,
    ffi.Pointer<ffi.Char>,
    ffi.Pointer<ffi.Void>,
    mz_uint16,
    mz_uint,
  )
>()
external int mz_zip_writer_add_file(
  ffi.Pointer<mz_zip_archive> pZip,
  ffi.Pointer<ffi.Char> pArchive_name,
  ffi.Pointer<ffi.Char> pSrc_filename,
  ffi.Pointer<ffi.Void> pComment,
  int comment_size,
  int level_and_flags,
);