GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
cmprzlib.c File Reference
#include <grass/config.h>
#include <zlib.h>
#include <grass/gis.h>
#include <grass/glocale.h>
#include "G.h"
Include dependency graph for cmprzlib.c:

Go to the source code of this file.

Functions

int G_zlib_compress_bound (int src_sz)
 
int G_zlib_compress (unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
 
int G_zlib_expand (unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
 

Function Documentation

◆ G_zlib_compress()

int G_zlib_compress ( unsigned char *  src,
int  src_sz,
unsigned char *  dst,
int  dst_sz 
)

◆ G_zlib_compress_bound()

int G_zlib_compress_bound ( int  src_sz)

Definition at line 76 of file cmprzlib.c.

Referenced by G_zlib_compress().

◆ G_zlib_expand()

int G_zlib_expand ( unsigned char *  src,
int  src_sz,
unsigned char *  dst,
int  dst_sz 
)

Definition at line 165 of file cmprzlib.c.

References _, dst, err(), G_warning(), NULL, and src.