GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-57a646b4a4
cmprzstd.c File Reference
#include <grass/config.h>
#include <zstd.h>
#include <grass/gis.h>
#include <grass/glocale.h>
Include dependency graph for cmprzstd.c:

Go to the source code of this file.

Functions

int G_zstd_compress_bound (int src_sz)
 
int G_zstd_compress (unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
 
int G_zstd_expand (unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
 

Function Documentation

◆ G_zstd_compress()

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

Definition at line 86 of file cmprzstd.c.

References _, dst, err(), G_calloc, G_fatal_error(), G_free(), G_warning(), G_zstd_compress_bound(), NULL, and src.

◆ G_zstd_compress_bound()

int G_zstd_compress_bound ( int  src_sz)

Definition at line 72 of file cmprzstd.c.

References _, and G_fatal_error().

Referenced by G_zstd_compress().

◆ G_zstd_expand()

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

Definition at line 162 of file cmprzstd.c.

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