ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gzwrite.c File Reference
#include "gzguts.h"
+ Include dependency graph for gzwrite.c:

Go to the source code of this file.

Functions

local int gz_init OF ((gz_statep))
 
local int gz_comp OF ((gz_statep, int))
 
local int gz_zero OF ((gz_statep, z_off64_t))
 
local z_size_t gz_write OF ((gz_statep, voidpc, z_size_t))
 
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)
 
z_size_t ZEXPORT gzfwrite (voidpc buf, z_size_t size, z_size_t nitems, gzFile file)
 
int ZEXPORT gzputc (gzFile file, int c)
 
int ZEXPORT gzputs (gzFile file, const char *str)
 
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)
 
int ZEXPORT gzsetparams (gzFile file, int level, int strategy)
 
int ZEXPORT gzclose_w (gzFile file)
 

Function Documentation

local int gz_comp ( gz_statep  state,
int  flush 
)

Definition at line 73 of file gzwrite.c.

View newest version in sPHENIX GitHub at line 73 of file gzwrite.c

References deflate(), deflateReset(), gz_error(), gz_init(), int(), max, internal_state::strm, Z_ERRNO, Z_FINISH, Z_NO_FLUSH, Z_OK, Z_STREAM_END, Z_STREAM_ERROR, and zstrerror.

Referenced by gz_write(), gz_zero(), gzclose_w(), gzflush(), gzprintf(), and gzsetparams().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

local int gz_init ( gz_statep  state)

Definition at line 17 of file gzwrite.c.

View newest version in sPHENIX GitHub at line 17 of file gzwrite.c

References DEF_MEM_LEVEL, deflateInit2, gz_error(), internal_state::strm, Z_DEFLATED, Z_MEM_ERROR, Z_NULL, and Z_OK.

Referenced by gz_comp(), gz_write(), and gzprintf().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

local z_size_t gz_write ( gz_statep  state,
voidpc  buf,
z_size_t  len 
)

Definition at line 178 of file gzwrite.c.

View newest version in sPHENIX GitHub at line 178 of file gzwrite.c

References field_utils::copy(), gz_comp(), gz_init(), gz_zero(), n, and Z_NO_FLUSH.

Referenced by gzfwrite(), gzputc(), gzputs(), and gzwrite().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

local int gz_zero ( gz_statep  state,
z_off64_t  len 
)

Definition at line 145 of file gzwrite.c.

View newest version in sPHENIX GitHub at line 145 of file gzwrite.c

References GT_OFF, gz_comp(), n, internal_state::strm, and Z_NO_FLUSH.

Referenced by gz_write(), gzclose_w(), gzflush(), gzprintf(), gzputc(), and gzsetparams().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ZEXPORT gzclose_w ( gzFile  file)

Definition at line 633 of file gzwrite.c.

View newest version in sPHENIX GitHub at line 633 of file gzwrite.c

References close(), deflateEnd(), gz_comp(), gz_error(), GZ_WRITE, gz_zero(), if(), void(), Z_ERRNO, Z_FINISH, Z_OK, and Z_STREAM_ERROR.

Referenced by gzclose().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int ZEXPORT gzflush ( gzFile  file,
int  flush 
)

Definition at line 559 of file gzwrite.c.

View newest version in sPHENIX GitHub at line 559 of file gzwrite.c

References gz_comp(), GZ_WRITE, gz_zero(), void(), Z_FINISH, Z_OK, and Z_STREAM_ERROR.

+ Here is the call graph for this function:

z_size_t ZEXPORT gzfwrite ( voidpc  buf,
z_size_t  size,
z_size_t  nitems,
gzFile  file 
)

Definition at line 274 of file gzwrite.c.

View newest version in sPHENIX GitHub at line 274 of file gzwrite.c

References gz_error(), GZ_WRITE, gz_write(), Z_OK, and Z_STREAM_ERROR.

+ Here is the call graph for this function:

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 
)

Definition at line 471 of file gzwrite.c.

View newest version in sPHENIX GitHub at line 471 of file gzwrite.c

References gz_comp(), gz_init(), GZ_WRITE, gz_zero(), if(), left, internal_state::strm, Z_NO_FLUSH, Z_OK, and Z_STREAM_ERROR.

+ Here is the call graph for this function:

int ZEXPORT gzputc ( gzFile  file,
int  c 
)

Definition at line 304 of file gzwrite.c.

View newest version in sPHENIX GitHub at line 304 of file gzwrite.c

References GZ_WRITE, gz_write(), gz_zero(), internal_state::strm, and Z_OK.

+ Here is the call graph for this function:

int ZEXPORT gzputs ( gzFile  file,
const char *  str 
)

Definition at line 352 of file gzwrite.c.

View newest version in sPHENIX GitHub at line 352 of file gzwrite.c

References gz_error(), GZ_WRITE, gz_write(), int(), INT_MAX, Z_DATA_ERROR, and Z_OK.

+ Here is the call graph for this function:

int ZEXPORT gzsetparams ( gzFile  file,
int  level,
int  strategy 
)

Definition at line 591 of file gzwrite.c.

View newest version in sPHENIX GitHub at line 591 of file gzwrite.c

References deflateParams(), gz_comp(), GZ_WRITE, gz_zero(), internal_state::level, internal_state::strategy, internal_state::strm, Z_BLOCK, Z_OK, and Z_STREAM_ERROR.

+ Here is the call graph for this function:

int ZEXPORT gzwrite ( gzFile  file,
voidpc  buf,
unsigned  len 
)

Definition at line 246 of file gzwrite.c.

View newest version in sPHENIX GitHub at line 246 of file gzwrite.c

References gz_error(), GZ_WRITE, gz_write(), Z_DATA_ERROR, and Z_OK.

+ Here is the call graph for this function:

local int gz_init OF ( (gz_statep )
local int gz_comp OF ( (gz_statep, int )
local int gz_zero OF ( (gz_statep, z_off64_t)  )
local z_size_t gz_write OF ( (gz_statep, voidpc, z_size_t)  )