mz_zip_reader_locate_file function

  1. @Native<Int Function(Pointer<mz_zip_archive>, Pointer<Char>, Pointer<Char>, mz_uint)>(ffi.Pointer<mz_zip_archive>, ffi.Pointer<ffi.Char>, ffi.Pointer<ffi.Char>, mz_uint)>()
int mz_zip_reader_locate_file(
  1. Pointer<mz_zip_archive> pZip,
  2. Pointer<Char> pName,
  3. Pointer<Char> pComment,
  4. int flags$1,
)

Attempts to locates a file in the archive's central directory. / / Valid flags: MZ_ZIP_FLAG_CASE_SENSITIVE, MZ_ZIP_FLAG_IGNORE_PATH / / Returns -1 if the file cannot be found.

Implementation

@ffi.Native<
  ffi.Int Function(
    ffi.Pointer<mz_zip_archive>,
    ffi.Pointer<ffi.Char>,
    ffi.Pointer<ffi.Char>,
    mz_uint,
  )
>()
external int mz_zip_reader_locate_file(
  ffi.Pointer<mz_zip_archive> pZip,
  ffi.Pointer<ffi.Char> pName,
  ffi.Pointer<ffi.Char> pComment,
  int flags$1,
);