HomeSort by: relevance | last modified time | path
    Searched refs:strm (Results 1 - 25 of 40) sorted by relevancy

1 2

  /src/common/dist/zlib/
inffast.h 11 void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start);
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...]
inflate.c 28 * - Change strm->next_out[-state->offset] to *(strm->next_out - state->offset)
61 * input in strm.
96 local int inflateStateCheck(z_streamp strm) {
98 if (strm == Z_NULL ||
99 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0)
101 state = (struct inflate_state FAR *)strm->state;
102 if (state == Z_NULL || state->strm != strm ||
    [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...]
deflate.c 217 * allocating a large strm->next_in buffer and copying from it.
220 local unsigned read_buf(z_streamp strm, Bytef *buf, unsigned size) {
221 unsigned len = strm->avail_in;
226 strm->avail_in -= len;
228 zmemcpy(buf, strm->next_in, len);
229 if (strm->state->wrap == 1) {
230 strm->adler = adler32(strm->adler, buf, len);
233 else if (strm->state->wrap == 2) {
234 strm->adler = crc32(strm->adler, buf, len)
    [all...]
zlib.h 230 ZEXTERN int ZEXPORT deflateInit(z_streamp strm, int level);
252 ZEXTERN int ZEXPORT deflate(z_streamp strm, int flush);
343 deflate() sets strm->adler to the Adler-32 checksum of all input read
345 strm->adler will be the CRC-32 checksum of the input read so far. (See
348 deflate() may update strm->data_type if it can make a good guess about
365 ZEXTERN int ZEXPORT deflateEnd(z_streamp strm);
380 ZEXTERN int ZEXPORT inflateInit(z_streamp strm);
403 ZEXTERN int ZEXPORT inflate(z_streamp strm, int flush);
445 To assist in this, on return inflate() always sets strm->data_type to the
446 number of unused bits in the last byte taken from strm->next_in, plus 64 i
    [all...]
infback.c 21 strm provides memory allocation functions in zalloc and zfree, or
27 int ZEXPORT inflateBackInit_(z_streamp strm, int windowBits,
35 if (strm == Z_NULL || window == Z_NULL ||
38 strm->msg = Z_NULL; /* in case we return an error */
39 if (strm->zalloc == (alloc_func)0) {
43 strm->zalloc = zcalloc;
44 strm->opaque = (voidpf)0;
47 if (strm->zfree == (free_func)0)
51 strm->zfree = zcfree;
53 state = (struct inflate_state FAR *)ZALLOC(strm, 1
    [all...]
inffast.c 28 strm->avail_in >= 6
29 strm->avail_out >= 258
30 start >= strm->avail_out
44 Therefore if strm->avail_in >= 6, then there is enough input to avoid
49 requires strm->avail_out >= 258 for each loop to avoid checking for
52 void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start) {
54 z_const unsigned char FAR *in; /* local strm->next_in */
56 unsigned char FAR *out; /* local strm->next_out */
57 unsigned char FAR *beg; /* inflate()'s initial strm->next_out */
66 unsigned long hold; /* local strm->hold *
    [all...]
zutil.h 75 #define ERR_RETURN(strm,err) \
76 return (strm->msg = __UNCONST(ERR_MSG(err)), (err))
259 #define ZALLOC(strm, items, size) \
260 (*((strm)->zalloc))((strm)->opaque, (items), (size))
261 #define ZFREE(strm, addr) (*((strm)->zfree))((strm)->opaque, (voidpf)(addr))
  /src/common/dist/zlib/contrib/infback9/
infback9.h 23 ZEXTERN int ZEXPORT inflateBack9(z_stream FAR *strm,
26 ZEXTERN int ZEXPORT inflateBack9End(z_stream FAR *strm);
27 ZEXTERN int ZEXPORT inflateBack9Init_(z_stream FAR *strm,
31 #define inflateBack9Init(strm, window) \
32 inflateBack9Init_((strm), (window), \
infback9.c 14 strm provides memory allocation functions in zalloc and zfree, or
19 int ZEXPORT inflateBack9Init_(z_stream FAR *strm, unsigned char FAR *window,
26 if (strm == Z_NULL || window == Z_NULL)
28 strm->msg = Z_NULL; /* in case we return an error */
29 if (strm->zalloc == (alloc_func)0) {
30 strm->zalloc = zcalloc;
31 strm->opaque = (voidpf)0;
33 if (strm->zfree == (free_func)0) strm->zfree = zcfree;
34 state = (struct inflate_state FAR *)ZALLOC(strm, 1
    [all...]
  /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...]
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...]
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...]
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...]
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...]
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...]
  /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...]
  /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/contrib/pascal/
zlibpas.pas 106 function deflateInit(var strm: z_stream; level: Integer): Integer;
107 function deflate(var strm: z_stream; flush: Integer): Integer;
108 function deflateEnd(var strm: z_stream): Integer;
109 function inflateInit(var strm: z_stream): Integer;
110 function inflate(var strm: z_stream; flush: Integer): Integer;
111 function inflateEnd(var strm: z_stream): Integer;
114 function deflateInit2(var strm: z_stream; level, method, windowBits,
116 function deflateSetDictionary(var strm: z_stream; const dictionary: PChar;
119 function deflateReset(var strm: z_stream): Integer;
120 function deflateParams(var strm: z_stream; level, strategy: Integer): Integer
    [all...]
  /src/common/dist/zlib/contrib/delphi/
ZLib.pas 55 constructor Create(Strm: TStream);
241 function deflateInit_(var strm: TZStreamRec; level: Integer; version: PChar;
243 function deflate(var strm: TZStreamRec; flush: Integer): Integer; external;
244 function deflateEnd(var strm: TZStreamRec): Integer; external;
247 function inflateInit_(var strm: TZStreamRec; version: PChar;
249 function inflate(var strm: TZStreamRec; flush: Integer): Integer; external;
250 function inflateEnd(var strm: TZStreamRec): Integer; external;
251 function inflateReset(var strm: TZStreamRec): Integer; external;
289 strm: TZStreamRec;
292 FillChar(strm, sizeof(strm), 0)
    [all...]
  /src/distrib/utils/zcat/
zcat.c 122 int deflateInit2_(z_streamp strm, int level, int method,
130 int deflate(z_streamp strm, int flush)
136 int deflateEnd(z_streamp strm)
142 int deflateParams(z_streamp strm, int level, int strategy)
  /src/common/dist/zlib/contrib/ada/
zlib-thin.adb 21 function Avail_In (Strm : in Z_Stream) return UInt is
23 return Strm.Avail_In;
30 function Avail_Out (Strm : in Z_Stream) return UInt is
32 return Strm.Avail_Out;
40 (strm : Z_Streamp;
49 (strm,
63 function Inflate_Init (strm : Z_Streamp; windowBits : Int) return Int is
65 return inflateInit2 (strm, windowBits, ZLIB_VERSION, Z_Stream_Size);
72 function Last_Error_Message (Strm : in Z_Stream) return String is
75 if Strm.msg = Null_Ptr the
    [all...]

Completed in 21 milliseconds

1 2