63 #include <grass/config.h> 65 #include <grass/gis.h> 66 #include <grass/glocale.h> 75 int err, nbytes, buf_sz;
83 if (src_sz <= 0 || dst_sz <= 0)
88 if (
NULL == (buf = (
unsigned char *)
89 G_calloc(buf_sz,
sizeof(
unsigned char))))
108 for (err = 0; err < nbytes; err++)
127 if (src_sz <= 0 || dst_sz <= 0)
137 if (nbytes != dst_sz) {
int G_lz4_expand(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
int LZ4_decompress_safe(const char *source, char *dest, int compressedSize, int maxDecompressedSize)
int LZ4_compress_default(const char *source, char *dest, int inputSize, int maxOutputSize)
SYMBOL * err(FILE *fp, SYMBOL *s, char *msg)
int G_lz4_compress(unsigned char *src, int src_sz, unsigned char *dst, int dst_sz)
int LZ4_compressBound(int isize)
void G_free(void *buf)
Free allocated memory.