Defines | Functions
mztools.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "unzip.h"
Include dependency graph for mztools.c:

Go to the source code of this file.

Defines

#define READ_16(adr)   ( READ_8(adr) | (READ_8(adr+1) << 8) )
#define READ_32(adr)   ( READ_16(adr) | (READ_16((adr)+2) << 16) )
#define READ_8(adr)   ((unsigned char)*(adr))
#define WRITE_16(buff, n)
#define WRITE_32(buff, n)
#define WRITE_8(buff, n)

Functions

int ZEXPORT unzRepair (char *file, const char *fileOut, const char *fileOutTmp, uLong *nRecovered, uLong *bytesRecovered) const

Define Documentation

#define READ_16 (   adr)    ( READ_8(adr) | (READ_8(adr+1) << 8) )

Definition at line 15 of file mztools.c.

#define READ_32 (   adr)    ( READ_16(adr) | (READ_16((adr)+2) << 16) )

Definition at line 16 of file mztools.c.

#define READ_8 (   adr)    ((unsigned char)*(adr))

Definition at line 14 of file mztools.c.

#define WRITE_16 (   buff,
 
)
Value:
do { \
  WRITE_8((unsigned char*)(buff), n); \
  WRITE_8(((unsigned char*)(buff)) + 1, (n) >> 8); \
} while(0)

Definition at line 21 of file mztools.c.

#define WRITE_32 (   buff,
 
)
Value:
do { \
  WRITE_16((unsigned char*)(buff), (n) & 0xffff); \
  WRITE_16((unsigned char*)(buff) + 2, (n) >> 16); \
} while(0)

Definition at line 25 of file mztools.c.

#define WRITE_8 (   buff,
 
)
Value:
do { \
  *((unsigned char*)(buff)) = (unsigned char) ((n) & 0xff); \
} while(0)

Definition at line 18 of file mztools.c.


Function Documentation

int ZEXPORT unzRepair ( char*  file,
const char*  fileOut,
const char*  fileOutTmp,
uLong nRecovered,
uLong bytesRecovered 
) const

Definition at line 30 of file mztools.c.



re_object_recorder
Author(s): Andreas Koch
autogenerated on Sun Jan 5 2014 11:39:13