/src/common/dist/zlib/examples/ |
zpipe.c | 40 z_stream strm; local in function:def 45 strm.zalloc = Z_NULL; 46 strm.zfree = Z_NULL; 47 strm.opaque = Z_NULL; 48 ret = deflateInit(&strm, level); 54 strm.avail_in = fread(in, 1, CHUNK, source); 56 (void)deflateEnd(&strm); 60 strm.next_in = in; 65 strm.avail_out = CHUNK; 66 strm.next_out = out 96 z_stream strm; local in function:inf [all...] |
zpipe.c | 40 z_stream strm; local in function:def 45 strm.zalloc = Z_NULL; 46 strm.zfree = Z_NULL; 47 strm.opaque = Z_NULL; 48 ret = deflateInit(&strm, level); 54 strm.avail_in = fread(in, 1, CHUNK, source); 56 (void)deflateEnd(&strm); 60 strm.next_in = in; 65 strm.avail_out = CHUNK; 66 strm.next_out = out 96 z_stream strm; local in function:inf [all...] |
zpipe.c | 40 z_stream strm; local in function:def 45 strm.zalloc = Z_NULL; 46 strm.zfree = Z_NULL; 47 strm.opaque = Z_NULL; 48 ret = deflateInit(&strm, level); 54 strm.avail_in = fread(in, 1, CHUNK, source); 56 (void)deflateEnd(&strm); 60 strm.next_in = in; 65 strm.avail_out = CHUNK; 66 strm.next_out = out 96 z_stream strm; local in function:inf [all...] |
gzjoin.c | 254 local void zpull(z_streamp strm, bin *in) 260 strm->avail_in = in->left; 261 strm->next_in = in->next; 289 z_stream strm; /* zlib inflate stream */ local in function:gzcopy 300 strm.zalloc = Z_NULL; 301 strm.zfree = Z_NULL; 302 strm.opaque = Z_NULL; 303 strm.avail_in = 0; 304 strm.next_in = Z_NULL; 305 ret = inflateInit2(&strm, -15) [all...] |
gznorm.c | 60 inflateEnd(&strm); \ 88 z_stream strm; local in function:gzip_normalize 89 strm.zalloc = Z_NULL; 90 strm.zfree = Z_NULL; 91 strm.opaque = Z_NULL; 92 strm.avail_in = 0; 93 strm.next_in = Z_NULL; 94 if (inflateInit2(&strm, 15 + 16) != Z_OK) 128 strm.avail_in = fread(dat, 1, CHUNK, in); 129 if (strm.avail_in == 0 [all...] |
gzjoin.c | 254 local void zpull(z_streamp strm, bin *in) 260 strm->avail_in = in->left; 261 strm->next_in = in->next; 289 z_stream strm; /* zlib inflate stream */ local in function:gzcopy 300 strm.zalloc = Z_NULL; 301 strm.zfree = Z_NULL; 302 strm.opaque = Z_NULL; 303 strm.avail_in = 0; 304 strm.next_in = Z_NULL; 305 ret = inflateInit2(&strm, -15) [all...] |
gznorm.c | 60 inflateEnd(&strm); \ 88 z_stream strm; local in function:gzip_normalize 89 strm.zalloc = Z_NULL; 90 strm.zfree = Z_NULL; 91 strm.opaque = Z_NULL; 92 strm.avail_in = 0; 93 strm.next_in = Z_NULL; 94 if (inflateInit2(&strm, 15 + 16) != Z_OK) 128 strm.avail_in = fread(dat, 1, CHUNK, in); 129 if (strm.avail_in == 0 [all...] |
gzjoin.c | 254 local void zpull(z_streamp strm, bin *in) 260 strm->avail_in = in->left; 261 strm->next_in = in->next; 289 z_stream strm; /* zlib inflate stream */ local in function:gzcopy 300 strm.zalloc = Z_NULL; 301 strm.zfree = Z_NULL; 302 strm.opaque = Z_NULL; 303 strm.avail_in = 0; 304 strm.next_in = Z_NULL; 305 ret = inflateInit2(&strm, -15) [all...] |
gznorm.c | 60 inflateEnd(&strm); \ 88 z_stream strm; local in function:gzip_normalize 89 strm.zalloc = Z_NULL; 90 strm.zfree = Z_NULL; 91 strm.opaque = Z_NULL; 92 strm.avail_in = 0; 93 strm.next_in = Z_NULL; 94 if (inflateInit2(&strm, 15 + 16) != Z_OK) 128 strm.avail_in = fread(dat, 1, CHUNK, in); 129 if (strm.avail_in == 0 [all...] |
gun.c | 193 of buffered input at next. strm is used for passing error information back 197 file, read error, or write error (a write error indicated by strm->next_in 201 int outfile, z_stream *strm) 230 strm->msg = (char *)"unknown lzw flags set"; 235 strm->msg = (char *)"lzw bits out of range"; 255 strm->msg = (char *)"invalid lzw code"; 282 strm->next_in = outbuf; /* signal write error */ 322 strm->msg = (char *)"invalid lzw code"; 354 strm->next_in = outbuf; /* signal write error */ 371 /* Decompress a gzip file from infile to outfile. strm is assumed to have bee 636 z_stream strm; local in function:main [all...] |
gzappend.c | 255 /* decompress gzip file "name", return strm with a deflate stream ready to 259 local int gzscan(char *name, z_stream *strm, int level) 283 strm->zalloc = Z_NULL; 284 strm->zfree = Z_NULL; 285 strm->opaque = Z_NULL; 286 ret = inflateInit2(strm, -15); 293 strm->avail_in = gz.left; 294 strm->next_in = gz.next; 299 if (strm->avail_in == 0) { 301 strm->avail_in = gz.left 469 z_stream strm; local in function:main [all...] |
zran.c | 134 z_stream strm = {0}; // inflate engine (gets fired up later) local in function:deflate_index_build 147 if (strm.avail_in == 0) { 148 strm.avail_in = fread(buf, 1, sizeof(buf), in); 149 totin += strm.avail_in; 150 strm.next_in = buf; 151 if (strm.avail_in < sizeof(buf) && ferror(in)) { 162 mode = strm.avail_in == 0 ? RAW : // empty -- will fail 163 (strm.next_in[0] & 0xf) == 8 ? ZLIB : 164 strm.next_in[0] == 0x1f ? GZIP : 166 ret = inflateInit2(&strm, mode) 359 z_stream strm = {0}; local in function:deflate_index_extract [all...] |
gun.c | 193 of buffered input at next. strm is used for passing error information back 197 file, read error, or write error (a write error indicated by strm->next_in 201 int outfile, z_stream *strm) 230 strm->msg = (char *)"unknown lzw flags set"; 235 strm->msg = (char *)"lzw bits out of range"; 255 strm->msg = (char *)"invalid lzw code"; 282 strm->next_in = outbuf; /* signal write error */ 322 strm->msg = (char *)"invalid lzw code"; 354 strm->next_in = outbuf; /* signal write error */ 371 /* Decompress a gzip file from infile to outfile. strm is assumed to have bee 636 z_stream strm; local in function:main [all...] |
gzappend.c | 255 /* decompress gzip file "name", return strm with a deflate stream ready to 259 local int gzscan(char *name, z_stream *strm, int level) 283 strm->zalloc = Z_NULL; 284 strm->zfree = Z_NULL; 285 strm->opaque = Z_NULL; 286 ret = inflateInit2(strm, -15); 293 strm->avail_in = gz.left; 294 strm->next_in = gz.next; 299 if (strm->avail_in == 0) { 301 strm->avail_in = gz.left 469 z_stream strm; local in function:main [all...] |
/src/common/dist/zlib/ |
gzwrite.c | 13 z_streamp strm = &(state->strm); local in function:gz_init 33 strm->zalloc = Z_NULL; 34 strm->zfree = Z_NULL; 35 strm->opaque = Z_NULL; 36 ret = deflateInit2(strm, state->level, Z_DEFLATED, 44 strm->next_in = NULL; 52 strm->avail_out = state->size; 53 strm->next_out = state->out; 54 state->x.next = strm->next_out 70 z_streamp strm = &(state->strm); local in function:gz_comp 148 z_streamp strm = &(state->strm); local in function:gz_zero 293 z_streamp strm; local in function:gzputc 366 z_streamp strm; local in function:gzvprintf 452 z_streamp strm; local in function:gzprintf 561 z_streamp strm; local in function:gzsetparams [all...] |
gzwrite.c | 13 z_streamp strm = &(state->strm); local in function:gz_init 33 strm->zalloc = Z_NULL; 34 strm->zfree = Z_NULL; 35 strm->opaque = Z_NULL; 36 ret = deflateInit2(strm, state->level, Z_DEFLATED, 44 strm->next_in = NULL; 52 strm->avail_out = state->size; 53 strm->next_out = state->out; 54 state->x.next = strm->next_out 70 z_streamp strm = &(state->strm); local in function:gz_comp 148 z_streamp strm = &(state->strm); local in function:gz_zero 293 z_streamp strm; local in function:gzputc 366 z_streamp strm; local in function:gzvprintf 452 z_streamp strm; local in function:gzprintf 561 z_streamp strm; local in function:gzsetparams [all...] |
gzwrite.c | 13 z_streamp strm = &(state->strm); local in function:gz_init 33 strm->zalloc = Z_NULL; 34 strm->zfree = Z_NULL; 35 strm->opaque = Z_NULL; 36 ret = deflateInit2(strm, state->level, Z_DEFLATED, 44 strm->next_in = NULL; 52 strm->avail_out = state->size; 53 strm->next_out = state->out; 54 state->x.next = strm->next_out 70 z_streamp strm = &(state->strm); local in function:gz_comp 148 z_streamp strm = &(state->strm); local in function:gz_zero 293 z_streamp strm; local in function:gzputc 366 z_streamp strm; local in function:gzvprintf 452 z_streamp strm; local in function:gzprintf 561 z_streamp strm; local in function:gzsetparams [all...] |
gzread.c | 40 If strm->avail_in != 0, then the current data is moved to the beginning of 45 z_streamp strm = &(state->strm); local in function:gz_avail 50 if (strm->avail_in) { /* copy what's there to the start */ 52 unsigned const char *q = strm->next_in; 53 unsigned n = strm->avail_in; 58 if (gz_load(state, state->in + strm->avail_in, 59 state->size - strm->avail_in, &got) == -1) 61 strm->avail_in += got; 62 strm->next_in = state->in 77 z_streamp strm = &(state->strm); local in function:gz_look 159 z_streamp strm = &(state->strm); local in function:gz_decomp 209 z_streamp strm = &(state->strm); local in function:gz_fetch [all...] |
gzread.c | 40 If strm->avail_in != 0, then the current data is moved to the beginning of 45 z_streamp strm = &(state->strm); local in function:gz_avail 50 if (strm->avail_in) { /* copy what's there to the start */ 52 unsigned const char *q = strm->next_in; 53 unsigned n = strm->avail_in; 58 if (gz_load(state, state->in + strm->avail_in, 59 state->size - strm->avail_in, &got) == -1) 61 strm->avail_in += got; 62 strm->next_in = state->in 77 z_streamp strm = &(state->strm); local in function:gz_look 159 z_streamp strm = &(state->strm); local in function:gz_decomp 209 z_streamp strm = &(state->strm); local in function:gz_fetch [all...] |
gzread.c | 40 If strm->avail_in != 0, then the current data is moved to the beginning of 45 z_streamp strm = &(state->strm); local in function:gz_avail 50 if (strm->avail_in) { /* copy what's there to the start */ 52 unsigned const char *q = strm->next_in; 53 unsigned n = strm->avail_in; 58 if (gz_load(state, state->in + strm->avail_in, 59 state->size - strm->avail_in, &got) == -1) 61 strm->avail_in += got; 62 strm->next_in = state->in 77 z_streamp strm = &(state->strm); local in function:gz_look 159 z_streamp strm = &(state->strm); local in function:gz_decomp 209 z_streamp strm = &(state->strm); local in function:gz_fetch [all...] |
gzguts.h | 201 z_stream strm; /* stream structure in-place (not a pointer) */ member in struct:__anone1a3ef820108
|
/src/usr.bin/gzip/ |
unxz.c | 43 lzma_stream strm = LZMA_STREAM_INIT; local in function:unxz 54 strm.next_in = ibuf; 56 strm.avail_in = read(i, ibuf + prelen, sizeof(ibuf) - prelen); 57 if (strm.avail_in == (size_t)-1) 59 infile_newdata(strm.avail_in); 60 strm.avail_in += prelen; 61 *bytes_in = strm.avail_in; 63 if ((ret = lzma_stream_decoder(&strm, UINT64_MAX, flags)) != LZMA_OK) 66 strm.next_out = NULL; 67 strm.avail_out = 0 277 lzma_stream strm = LZMA_STREAM_INIT; local in function:parse_indexes [all...] |
/src/sys/net/ |
ppp-deflate.c | 70 z_stream strm; member in struct:deflate_state 171 state->strm.next_in = NULL; 172 state->strm.zalloc = zalloc; 173 state->strm.zfree = zfree; 174 if (deflateInit2(&state->strm, Z_DEFAULT_COMPRESSION, DEFLATE_METHOD_VAL, 190 deflateEnd(&state->strm); 213 deflateReset(&state->strm); 224 deflateReset(&state->strm); 275 state->strm.next_out = wptr; 276 state->strm.avail_out = wspace - (PPP_HDRLEN + 2) [all...] |
/src/common/dist/zlib/test/ |
infcover.c | 32 z_stream strm; 33 mem_setup(&strm) initializes the memory tracking and sets the 34 zalloc, zfree, and opaque members of strm to use 35 memory tracking for all zlib operations on strm 36 mem_limit(&strm, limit) sets a limit on the total bytes requested -- a 41 mem_used(&strm, "msg") prints to stderr "msg" and the total bytes used 42 mem_high(&strm, "msg") prints to stderr "msg" and the high water mark 43 mem_done(&strm, "msg") ends memory tracking, releases all allocations 50 strm members to Z_NULL to use the default memory 52 using strm 290 z_stream strm, copy; local in function:inf 353 z_stream strm; local in function:cover_support 391 z_stream strm, copy; local in function:cover_wrap 474 z_stream strm; local in function:cover_back 514 z_stream strm; local in function:try [all...] |
minigzip.c | 167 z_stream strm; member in struct:gzFile_s 178 gz->strm.zalloc = myalloc; 179 gz->strm.zfree = myfree; 180 gz->strm.opaque = Z_NULL; 182 ret = deflateInit2(&(gz->strm), -1, 8, 15 + 16, 8, 0); 184 gz->strm.next_in = 0; 185 gz->strm.avail_in = Z_NULL; 186 ret = inflateInit2(&(gz->strm), 15 + 16); 195 gz->write ? deflateEnd(&(gz->strm)) : inflateEnd(&(gz->strm)); 213 z_stream *strm; local in function:gzwrite 234 z_stream *strm; local in function:gzread 262 z_stream *strm; local in function:gzclose [all...] |