Assimp  v4.1. (December 2018)
zip.h File Reference

Macros

#define _SSIZE_T
 
#define MAX_PATH   32767 /* # chars in a path name including NULL */
 
#define ZIP_DEFAULT_COMPRESSION_LEVEL   6
 
#define ZIP_H
 

Typedefs

typedef long ssize_t
 

Functions

void zip_close (struct zip_t *zip)
 
int zip_create (const char *zipname, const char *filenames[], size_t len)
 
int zip_entry_close (struct zip_t *zip)
 
unsigned int zip_entry_crc32 (struct zip_t *zip)
 
int zip_entry_extract (struct zip_t *zip, size_t(*on_extract)(void *arg, unsigned long long offset, const void *data, size_t size), void *arg)
 
int zip_entry_fread (struct zip_t *zip, const char *filename)
 
int zip_entry_fwrite (struct zip_t *zip, const char *filename)
 
int zip_entry_index (struct zip_t *zip)
 
int zip_entry_isdir (struct zip_t *zip)
 
const char * zip_entry_name (struct zip_t *zip)
 
ssize_t zip_entry_noallocread (struct zip_t *zip, void *buf, size_t bufsize)
 
int zip_entry_open (struct zip_t *zip, const char *entryname)
 
int zip_entry_openbyindex (struct zip_t *zip, int index)
 
ssize_t zip_entry_read (struct zip_t *zip, void **buf, size_t *bufsize)
 
unsigned long long zip_entry_size (struct zip_t *zip)
 
int zip_entry_write (struct zip_t *zip, const void *buf, size_t bufsize)
 
int zip_extract (const char *zipname, const char *dir, int(*on_extract_entry)(const char *filename, void *arg), void *arg)
 
struct zip_tzip_open (const char *zipname, int level, char mode)
 
int zip_total_entries (struct zip_t *zip)
 

Macro Definition Documentation

◆ _SSIZE_T

#define _SSIZE_T

◆ MAX_PATH

#define MAX_PATH   32767 /* # chars in a path name including NULL */

◆ ZIP_DEFAULT_COMPRESSION_LEVEL

#define ZIP_DEFAULT_COMPRESSION_LEVEL   6

◆ ZIP_H

#define ZIP_H

Typedef Documentation

◆ ssize_t

typedef long ssize_t

Function Documentation

◆ zip_close()

void zip_close ( struct zip_t zip)

◆ zip_create()

int zip_create ( const char *  zipname,
const char *  filenames[],
size_t  len 
)

◆ zip_entry_close()

int zip_entry_close ( struct zip_t zip)

◆ zip_entry_crc32()

unsigned int zip_entry_crc32 ( struct zip_t zip)

◆ zip_entry_extract()

int zip_entry_extract ( struct zip_t zip,
size_t(*)(void *arg, unsigned long long offset, const void *data, size_t size)  on_extract,
void *  arg 
)

◆ zip_entry_fread()

int zip_entry_fread ( struct zip_t zip,
const char *  filename 
)

◆ zip_entry_fwrite()

int zip_entry_fwrite ( struct zip_t zip,
const char *  filename 
)

◆ zip_entry_index()

int zip_entry_index ( struct zip_t zip)

◆ zip_entry_isdir()

int zip_entry_isdir ( struct zip_t zip)

◆ zip_entry_name()

const char* zip_entry_name ( struct zip_t zip)

◆ zip_entry_noallocread()

ssize_t zip_entry_noallocread ( struct zip_t zip,
void *  buf,
size_t  bufsize 
)

◆ zip_entry_open()

int zip_entry_open ( struct zip_t zip,
const char *  entryname 
)

◆ zip_entry_openbyindex()

int zip_entry_openbyindex ( struct zip_t zip,
int  index 
)

◆ zip_entry_read()

ssize_t zip_entry_read ( struct zip_t zip,
void **  buf,
size_t *  bufsize 
)

◆ zip_entry_size()

unsigned long long zip_entry_size ( struct zip_t zip)

◆ zip_entry_write()

int zip_entry_write ( struct zip_t zip,
const void *  buf,
size_t  bufsize 
)

◆ zip_extract()

int zip_extract ( const char *  zipname,
const char *  dir,
int(*)(const char *filename, void *arg)  on_extract_entry,
void *  arg 
)

◆ zip_open()

struct zip_t* zip_open ( const char *  zipname,
int  level,
char  mode 
)

◆ zip_total_entries()

int zip_total_entries ( struct zip_t zip)