Classes | Macros | Functions
zlib/examples/zran.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "zlib.h"
#include "zran.h"
Include dependency graph for zlib/examples/zran.c:

Go to the source code of this file.

Classes

struct  point
 

Macros

#define CHUNK   16384 /* file input buffer size */
 
#define WINSIZE   32768U /* sliding window size */
 

Functions

static struct deflate_indexaddpoint (struct deflate_index *index, int bits, off_t in, off_t out, unsigned left, unsigned char *window)
 
int deflate_index_build (FILE *in, off_t span, struct deflate_index **built)
 
int deflate_index_extract (FILE *in, struct deflate_index *index, off_t offset, unsigned char *buf, int len)
 
void deflate_index_free (struct deflate_index *index)
 

Macro Definition Documentation

◆ CHUNK

#define CHUNK   16384 /* file input buffer size */

Definition at line 65 of file zlib/examples/zran.c.

◆ WINSIZE

#define WINSIZE   32768U /* sliding window size */

Definition at line 64 of file zlib/examples/zran.c.

Function Documentation

◆ addpoint()

static struct deflate_index* addpoint ( struct deflate_index index,
int  bits,
off_t  in,
off_t  out,
unsigned  left,
unsigned char *  window 
)
static

Definition at line 89 of file zlib/examples/zran.c.

◆ deflate_index_build()

int deflate_index_build ( FILE *  in,
off_t  span,
struct deflate_index **  built 
)

Definition at line 135 of file zlib/examples/zran.c.

◆ deflate_index_extract()

int deflate_index_extract ( FILE *  in,
struct deflate_index index,
off_t  offset,
unsigned char *  buf,
int  len 
)

Definition at line 248 of file zlib/examples/zran.c.

◆ deflate_index_free()

void deflate_index_free ( struct deflate_index index)

Definition at line 76 of file zlib/examples/zran.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:39