ZLIB
Loading...
Searching...
No Matches
gz_state Struct Reference

internal gzip file state data structure More...

#include <gzguts.h>

Data Fields

struct gzFile_s x
 exposed contents for gzgetc() macro
 
z_stream strm
 zlib inflate or deflate stream
 
used for both reading and writing
int mode
 see gzip modes above
 
int fd
 file descriptor
 
char * path
 path or fd for error messages
 
unsigned size
 buffer size, zero if not allocated yet
 
unsigned want
 requested buffer size, default is GZBUFSIZE
 
unsigned char * in
 input buffer (double-sized when writing)
 
unsigned char * out
 output buffer (double-sized when reading)
 
just for reading
int how
 0: get header, 1: copy, 2: decompress
 
z_off64_t start
 where the gzip data started, for rewinding
 
int eof
 true if end of input file reached
 
just for writing
int level
 compression level
 
int strategy
 compression strategy
 
z_off64_t skip
 seek request
 
error information
int err
 error code
 

Detailed Description

internal gzip file state data structure

Field Documentation

◆ skip

z_off64_t gz_state::skip

seek request

amount to skip (already rewound if backwards)

◆ x

struct gzFile_s gz_state::x

exposed contents for gzgetc() macro

  • x for exposed
  • x.have: number of bytes available at x.next
  • x.next: next output data to deliver or write
  • x.pos: current position in uncompressed data

The documentation for this struct was generated from the following file: