ZLIB
Loading...
Searching...
No Matches
gzwrite.c File Reference

Functions for writing gzip files. More...

#include "gzguts.h"

Functions

local int gz_init (gz_statep state)
 
local int gz_comp (gz_statep state, int flush)
 
local int gz_zero (gz_statep state, z_off64_t len)
 
local z_size_t gz_write (gz_statep state, voidpc buf, z_size_t len)
 
int ZEXPORT gzwrite (gzFile file, voidpc buf, unsigned len)
 Compress and write the len uncompressed bytes at buf to file.
 
z_size_t ZEXPORT gzfwrite (voidpc buf, z_size_t size, z_size_t nitems, gzFile file)
 Compress and write nitems items of size size from buf to file, duplicating the interface of stdio's fwrite(), with size_t request and return types.
 
int ZEXPORT gzputc (gzFile file, int c)
 Compress and write c, converted to an unsigned char, into file.
 
int ZEXPORT gzputs (gzFile file, const char *s)
 Compress and write the given null-terminated string s to file, excluding the terminating null character.
 
int ZEXPORTVA gzprintf (gzFile file, const char *format, int a1, int a2, int a3, int a4, int a5, int a6, int a7, int a8, int a9, int a10, int a11, int a12, int a13, int a14, int a15, int a16, int a17, int a18, int a19, int a20)
 
int ZEXPORT gzflush (gzFile file, int flush)
 Flush all pending output to file.
 
int ZEXPORT gzsetparams (gzFile file, int level, int strategy)
 Dynamically update the compression level and strategy for file.
 
int ZEXPORT gzclose_w (gzFile file)
 Same as gzclose(), but gzclose_r() is only for use when reading, and gzclose_w() is only for use when writing or appending.
 

Detailed Description

Functions for writing gzip files.

Copyright (C) 2004-2019 Mark Adler For conditions of distribution and use, see copyright notice in zlib.h