#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
Go to the source code of this file.
|
#define | local static |
|
#define | SPAN 1048576L /* desired distance between access points */ |
|
#define | WINSIZE 32768U /* sliding window size */ |
|
#define | CHUNK 16384 /* file input buffer size */ |
|
|
static void | free_index (struct access *index) |
|
static struct access * | addpoint (struct access *index, int bits, off_t in, off_t out, unsigned left, unsigned char *window) |
|
static int | build_index (FILE *in, off_t span, struct access **built) |
|
static int | extract (FILE *in, struct access *index, off_t offset, unsigned char *buf, int len) |
|
int | main (int argc, char **argv) |
|
Definition at line 67 of file zran.c.
Class Members |
int |
bits |
|
off_t |
in |
|
off_t |
out |
|
unsigned char |
window[32768U] |
|
Definition at line 75 of file zran.c.
Class Members |
int |
have |
|
struct point * |
list |
|
int |
size |
|
#define CHUNK 16384 /* file input buffer size */ |
#define SPAN 1048576L /* desired distance between access points */ |
#define WINSIZE 32768U /* sliding window size */ |
static struct access* addpoint |
( |
struct access * |
index, |
|
|
int |
bits, |
|
|
off_t |
in, |
|
|
off_t |
out, |
|
|
unsigned |
left, |
|
|
unsigned char * |
window |
|
) |
| |
|
static |
static int build_index |
( |
FILE * |
in, |
|
|
off_t |
span, |
|
|
struct access ** |
built |
|
) |
| |
|
static |
static int extract |
( |
FILE * |
in, |
|
|
struct access * |
index, |
|
|
off_t |
offset, |
|
|
unsigned char * |
buf, |
|
|
int |
len |
|
) |
| |
|
static |
static void free_index |
( |
struct access * |
index | ) |
|
|
static |
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |