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

Go to the source code of this file.

Classes

struct  access
 
struct  point
 

Macros

#define CHUNK   16384 /* file input buffer size */
 
#define local   static
 
#define SPAN   1048576L /* desired distance between access points */
 
#define WINSIZE   32768U /* sliding window size */
 

Functions

struct accessaddpoint (struct access *index, int bits, off_t in, off_t out, unsigned left, unsigned char *window)
 
int build_index (FILE *in, off_t span, struct access **built)
 
int extract (FILE *in, struct access *index, off_t offset, unsigned char *buf, int len)
 
void free_index (struct access *index)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ CHUNK

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

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

◆ local

#define local   static

Definition at line 60 of file bloaty/third_party/zlib/examples/zran.c.

◆ SPAN

#define SPAN   1048576L /* desired distance between access points */

Definition at line 62 of file bloaty/third_party/zlib/examples/zran.c.

◆ WINSIZE

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

Definition at line 63 of file bloaty/third_party/zlib/examples/zran.c.

Function Documentation

◆ addpoint()

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

Definition at line 92 of file bloaty/third_party/zlib/examples/zran.c.

◆ build_index()

int build_index ( FILE *  in,
off_t  span,
struct access **  built 
)

Definition at line 144 of file bloaty/third_party/zlib/examples/zran.c.

◆ extract()

int extract ( FILE *  in,
struct access index,
off_t  offset,
unsigned char *  buf,
int  len 
)

Definition at line 249 of file bloaty/third_party/zlib/examples/zran.c.

◆ free_index()

void free_index ( struct access index)

Definition at line 82 of file bloaty/third_party/zlib/examples/zran.c.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 354 of file bloaty/third_party/zlib/examples/zran.c.



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