#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "unzip.h"
Go to the source code of this file.
#define READ_16 |
( |
|
adr | ) |
( READ_8(adr) | (READ_8(adr+1) << 8) ) |
#define READ_8 |
( |
|
adr | ) |
((unsigned char)*(adr)) |
#define WRITE_16 |
( |
|
buff, |
|
|
|
n |
|
) |
| |
Value: WRITE_8(((
unsigned char*)(buff)) + 1, (n) >> 8); \
} while(0)
Definition at line 21 of file mztools.c.
#define WRITE_32 |
( |
|
buff, |
|
|
|
n |
|
) |
| |
Value: 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, |
|
|
|
n |
|
) |
| |
Value:do { \
*((unsigned char*)(buff)) = (unsigned char) ((n) & 0xff); \
} while(0)
Definition at line 18 of file mztools.c.