/external/zlib/src/test/ |
D | infcover.c | 158 local void mem_setup(z_stream *strm) in mem_setup() argument 170 strm->opaque = zone; in mem_setup() 171 strm->zalloc = mem_alloc; in mem_setup() 172 strm->zfree = mem_free; in mem_setup() 176 local void mem_limit(z_stream *strm, size_t limit) in mem_limit() argument 178 struct mem_zone *zone = strm->opaque; in mem_limit() 184 local void mem_used(z_stream *strm, char *prefix) in mem_used() argument 186 struct mem_zone *zone = strm->opaque; in mem_used() 192 local void mem_high(z_stream *strm, char *prefix) in mem_high() argument 194 struct mem_zone *zone = strm->opaque; in mem_high() [all …]
|
D | minigzip.c | 175 z_stream strm; member 208 gz->strm.zalloc = myalloc; 209 gz->strm.zfree = myfree; 210 gz->strm.opaque = Z_NULL; 212 ret = deflateInit2(&(gz->strm), -1, 8, 15 + 16, 8, 0); 214 gz->strm.next_in = 0; 215 gz->strm.avail_in = Z_NULL; 216 ret = inflateInit2(&(gz->strm), 15 + 16); 225 gz->write ? deflateEnd(&(gz->strm)) : inflateEnd(&(gz->strm)); 241 z_stream *strm; local [all …]
|
/external/u-boot/lib/bzip2/ |
D | bzlib.c | 200 ( bz_stream* strm, in BZ_API() 210 if (strm == NULL || in BZ_API() 216 if (strm->bzalloc == NULL) strm->bzalloc = default_bzalloc; in BZ_API() 217 if (strm->bzfree == NULL) strm->bzfree = default_bzfree; in BZ_API() 221 s->strm = strm; in BZ_API() 254 strm->state = s; in BZ_API() 255 strm->total_in_lo32 = 0; in BZ_API() 256 strm->total_in_hi32 = 0; in BZ_API() 257 strm->total_out_lo32 = 0; in BZ_API() 258 strm->total_out_hi32 = 0; in BZ_API() [all …]
|
/external/zlib/src/examples/ |
D | zpipe.c | 40 z_stream strm; in def() local 45 strm.zalloc = Z_NULL; in def() 46 strm.zfree = Z_NULL; in def() 47 strm.opaque = Z_NULL; in def() 48 ret = deflateInit(&strm, level); in def() 54 strm.avail_in = fread(in, 1, CHUNK, source); in def() 56 (void)deflateEnd(&strm); in def() 60 strm.next_in = in; in def() 65 strm.avail_out = CHUNK; in def() 66 strm.next_out = out; in def() [all …]
|
D | zran.c | 150 z_stream strm; in build_index() local 155 strm.zalloc = Z_NULL; in build_index() 156 strm.zfree = Z_NULL; in build_index() 157 strm.opaque = Z_NULL; in build_index() 158 strm.avail_in = 0; in build_index() 159 strm.next_in = Z_NULL; in build_index() 160 ret = inflateInit2(&strm, 47); /* automatic zlib or gzip decoding */ in build_index() 169 strm.avail_out = 0; in build_index() 172 strm.avail_in = fread(input, 1, CHUNK, in); in build_index() 177 if (strm.avail_in == 0) { in build_index() [all …]
|
D | gzappend.c | 259 local int gzscan(char *name, z_stream *strm, int level) in gzscan() argument 283 strm->zalloc = Z_NULL; in gzscan() 284 strm->zfree = Z_NULL; in gzscan() 285 strm->opaque = Z_NULL; in gzscan() 286 ret = inflateInit2(strm, -15); in gzscan() 293 strm->avail_in = gz.left; in gzscan() 294 strm->next_in = gz.next; in gzscan() 299 if (strm->avail_in == 0) { in gzscan() 301 strm->avail_in = gz.left; in gzscan() 302 strm->next_in = gz.next; in gzscan() [all …]
|
D | gzjoin.c | 254 local void zpull(z_streamp strm, bin *in) in zpull() argument 260 strm->avail_in = in->left; in zpull() 261 strm->next_in = in->next; in zpull() 289 z_stream strm; /* zlib inflate stream */ in gzcopy() local 300 strm.zalloc = Z_NULL; in gzcopy() 301 strm.zfree = Z_NULL; in gzcopy() 302 strm.opaque = Z_NULL; in gzcopy() 303 strm.avail_in = 0; in gzcopy() 304 strm.next_in = Z_NULL; in gzcopy() 305 ret = inflateInit2(&strm, -15); in gzcopy() [all …]
|
/external/bzip2/ |
D | bzlib.c | 149 ( bz_stream* strm, in BZ_API() 159 if (strm == NULL || in BZ_API() 165 if (strm->bzalloc == NULL) strm->bzalloc = default_bzalloc; in BZ_API() 166 if (strm->bzfree == NULL) strm->bzfree = default_bzfree; in BZ_API() 170 s->strm = strm; in BZ_API() 203 strm->state = s; in BZ_API() 204 strm->total_in_lo32 = 0; in BZ_API() 205 strm->total_in_hi32 = 0; in BZ_API() 206 strm->total_out_lo32 = 0; in BZ_API() 207 strm->total_out_hi32 = 0; in BZ_API() [all …]
|
/external/libxml2/ |
D | xzlib.c | 75 lzma_stream strm; /* stream structure in-place (not a pointer) */ member 132 state->strm.avail_in = 0; /* no input data yet */ in xz_reset() 257 lzma_stream *strm = &(state->strm); in xz_avail() local 263 unsigned tmp = strm->avail_in; in xz_avail() 266 strm->avail_in = tmp; in xz_avail() 269 strm->avail_in = tmp; in xz_avail() 270 strm->next_in = state->in; in xz_avail() 280 state->strm.avail_in = state->zstrm.avail_in; in xz_avail_zstrm() 281 state->strm.next_in = state->zstrm.next_in; in xz_avail_zstrm() 283 state->zstrm.avail_in = (uInt) state->strm.avail_in; in xz_avail_zstrm() [all …]
|
/external/zlib/src/ |
D | inflate.c | 95 local int inflateStateCheck OF((z_streamp strm)); 97 local int updatewindow OF((z_streamp strm, const unsigned char FAR *end, 105 local int inflateStateCheck(strm) in inflateStateCheck() argument 106 z_streamp strm; in inflateStateCheck() 109 if (strm == Z_NULL || 110 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0) 112 state = (struct inflate_state FAR *)strm->state; 113 if (state == Z_NULL || state->strm != strm || 119 int ZEXPORT inflateResetKeep(strm) in inflateResetKeep() argument 120 z_streamp strm; in inflateResetKeep() [all …]
|
D | gzwrite.c | 21 z_streamp strm = &(state->strm); local 41 strm->zalloc = Z_NULL; 42 strm->zfree = Z_NULL; 43 strm->opaque = Z_NULL; 44 ret = deflateInit2(strm, state->level, Z_DEFLATED, 52 strm->next_in = NULL; 60 strm->avail_out = state->size; 61 strm->next_out = state->out; 62 state->x.next = strm->next_out; 79 z_streamp strm = &(state->strm); local [all …]
|
D | deflate.c | 76 local int deflateStateCheck OF((z_streamp strm)); 88 local void flush_pending OF((z_streamp strm)); 89 local unsigned read_buf OF((z_streamp strm, Bytef *buf, unsigned size)); 228 int ZEXPORT deflateInit_(strm, level, version, stream_size) in deflateInit_() argument 229 z_streamp strm; in deflateInit_() 234 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, 240 int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, in deflateInit2_() argument 242 z_streamp strm; in deflateInit2_() 264 if (strm == Z_NULL) return Z_STREAM_ERROR; 266 strm->msg = Z_NULL; [all …]
|
D | infback.c | 28 int ZEXPORT inflateBackInit_(strm, windowBits, window, version, stream_size) in inflateBackInit_() argument 29 z_streamp strm; in inflateBackInit_() 40 if (strm == Z_NULL || window == Z_NULL || 43 strm->msg = Z_NULL; /* in case we return an error */ 44 if (strm->zalloc == (alloc_func)0) { 48 strm->zalloc = zcalloc; 49 strm->opaque = (voidpf)0; 52 if (strm->zfree == (free_func)0) 56 strm->zfree = zcfree; 58 state = (struct inflate_state FAR *)ZALLOC(strm, 1, [all …]
|
D | gzread.c | 60 z_streamp strm = &(state->strm); local 65 if (strm->avail_in) { /* copy what's there to the start */ 67 unsigned const char *q = strm->next_in; 68 unsigned n = strm->avail_in; 73 if (gz_load(state, state->in + strm->avail_in, 74 state->size - strm->avail_in, &got) == -1) 76 strm->avail_in += got; 77 strm->next_in = state->in; 94 z_streamp strm = &(state->strm); local 110 state->strm.zalloc = Z_NULL; [all …]
|
/external/python/cpython2/Modules/zlib/ |
D | inflate.c | 95 local int inflateStateCheck OF((z_streamp strm)); 97 local int updatewindow OF((z_streamp strm, const unsigned char FAR *end, 105 local int inflateStateCheck(strm) in inflateStateCheck() argument 106 z_streamp strm; in inflateStateCheck() 109 if (strm == Z_NULL || 110 strm->zalloc == (alloc_func)0 || strm->zfree == (free_func)0) 112 state = (struct inflate_state FAR *)strm->state; 113 if (state == Z_NULL || state->strm != strm || 119 int ZEXPORT inflateResetKeep(strm) in inflateResetKeep() argument 120 z_streamp strm; in inflateResetKeep() [all …]
|
D | gzwrite.c | 21 z_streamp strm = &(state->strm); local 41 strm->zalloc = Z_NULL; 42 strm->zfree = Z_NULL; 43 strm->opaque = Z_NULL; 44 ret = deflateInit2(strm, state->level, Z_DEFLATED, 52 strm->next_in = NULL; 60 strm->avail_out = state->size; 61 strm->next_out = state->out; 62 state->x.next = strm->next_out; 79 z_streamp strm = &(state->strm); local [all …]
|
D | deflate.c | 76 local int deflateStateCheck OF((z_streamp strm)); 88 local void flush_pending OF((z_streamp strm)); 89 local unsigned read_buf OF((z_streamp strm, Bytef *buf, unsigned size)); 228 int ZEXPORT deflateInit_(strm, level, version, stream_size) in deflateInit_() argument 229 z_streamp strm; in deflateInit_() 234 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, 240 int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, in deflateInit2_() argument 242 z_streamp strm; in deflateInit2_() 264 if (strm == Z_NULL) return Z_STREAM_ERROR; 266 strm->msg = Z_NULL; [all …]
|
D | gzread.c | 60 z_streamp strm = &(state->strm); local 65 if (strm->avail_in) { /* copy what's there to the start */ 67 unsigned const char *q = strm->next_in; 68 unsigned n = strm->avail_in; 73 if (gz_load(state, state->in + strm->avail_in, 74 state->size - strm->avail_in, &got) == -1) 76 strm->avail_in += got; 77 strm->next_in = state->in; 94 z_streamp strm = &(state->strm); local 110 state->strm.zalloc = Z_NULL; [all …]
|
D | infback.c | 28 int ZEXPORT inflateBackInit_(strm, windowBits, window, version, stream_size) in inflateBackInit_() argument 29 z_streamp strm; in inflateBackInit_() 40 if (strm == Z_NULL || window == Z_NULL || 43 strm->msg = Z_NULL; /* in case we return an error */ 44 if (strm->zalloc == (alloc_func)0) { 48 strm->zalloc = zcalloc; 49 strm->opaque = (voidpf)0; 52 if (strm->zfree == (free_func)0) 56 strm->zfree = zcfree; 58 state = (struct inflate_state FAR *)ZALLOC(strm, 1, [all …]
|
D | minigzip.c | 175 z_stream strm; member 208 gz->strm.zalloc = myalloc; 209 gz->strm.zfree = myfree; 210 gz->strm.opaque = Z_NULL; 212 ret = deflateInit2(&(gz->strm), -1, 8, 15 + 16, 8, 0); 214 gz->strm.next_in = 0; 215 gz->strm.avail_in = Z_NULL; 216 ret = inflateInit2(&(gz->strm), 15 + 16); 225 gz->write ? deflateEnd(&(gz->strm)) : inflateEnd(&(gz->strm)); 241 z_stream *strm; local [all …]
|
/external/squashfs-tools/squashfs-tools/ |
D | lzma_xz_wrapper.c | 43 lzma_stream strm = LZMA_STREAM_INIT; in lzma_compress() local 49 res = lzma_alone_encoder(&strm, &opt); in lzma_compress() 51 lzma_end(&strm); in lzma_compress() 55 strm.next_out = dest; in lzma_compress() 56 strm.avail_out = block_size; in lzma_compress() 57 strm.next_in = src; in lzma_compress() 58 strm.avail_in = size; in lzma_compress() 60 res = lzma_code(&strm, LZMA_FINISH); in lzma_compress() 61 lzma_end(&strm); in lzma_compress() 80 return (int) strm.total_out; in lzma_compress() [all …]
|
/external/u-boot/lib/zlib/ |
D | deflate.c | 86 local void flush_pending OF((z_streamp strm)); 87 local int read_buf OF((z_streamp strm, Bytef *buf, unsigned size)); 198 int ZEXPORT deflateInit_(strm, level, version, stream_size) in deflateInit_() argument 199 z_streamp strm; in deflateInit_() 204 return deflateInit2_(strm, level, Z_DEFLATED, MAX_WBITS, DEF_MEM_LEVEL, 210 int ZEXPORT deflateInit2_(strm, level, method, windowBits, memLevel, strategy, in deflateInit2_() argument 212 z_streamp strm; in deflateInit2_() 234 if (strm == Z_NULL) return Z_STREAM_ERROR; 236 strm->msg = Z_NULL; 237 if (strm->zalloc == (alloc_func)0) { [all …]
|
D | inflate.c | 6 local int updatewindow OF((z_streamp strm, unsigned out)); 8 int ZEXPORT inflateReset(z_streamp strm) in inflateReset() argument 12 if (strm == Z_NULL || strm->state == Z_NULL) return Z_STREAM_ERROR; in inflateReset() 13 state = (struct inflate_state FAR *)strm->state; in inflateReset() 14 strm->total_in = strm->total_out = state->total = 0; in inflateReset() 15 strm->msg = Z_NULL; in inflateReset() 16 strm->adler = 1; /* to support ill-conceived Java test suite */ in inflateReset() 33 int ZEXPORT inflateInit2_(z_streamp strm, int windowBits, const char *version, in inflateInit2_() argument 41 if (strm == Z_NULL) return Z_STREAM_ERROR; in inflateInit2_() 42 strm->msg = Z_NULL; /* in case we return an error */ in inflateInit2_() [all …]
|
/external/zlib/src/contrib/pascal/ |
D | zlibpas.pas | 106 function deflateInit(var strm: z_stream; level: Integer): Integer; in deflateInit() 107 function deflate(var strm: z_stream; flush: Integer): Integer; in deflate() 108 function deflateEnd(var strm: z_stream): Integer; in deflateEnd() 109 function inflateInit(var strm: z_stream): Integer; in inflateInit() 110 function inflate(var strm: z_stream; flush: Integer): Integer; in inflate() 111 function inflateEnd(var strm: z_stream): Integer; in inflateEnd() 114 function deflateInit2(var strm: z_stream; level, method, windowBits, in deflateInit2() 116 function deflateSetDictionary(var strm: z_stream; const dictionary: PChar; in deflateSetDictionary() 119 function deflateReset(var strm: z_stream): Integer; in deflateReset() 120 function deflateParams(var strm: z_stream; level, strategy: Integer): Integer; in deflateParams() [all …]
|
/external/zlib/src/contrib/delphi/ |
D | ZLib.pas | 241 function deflateInit_(var strm: TZStreamRec; level: Integer; version: PChar; in deflateInit_() 243 function deflate(var strm: TZStreamRec; flush: Integer): Integer; external; in deflate() 244 function deflateEnd(var strm: TZStreamRec): Integer; external; in deflateEnd() 247 function inflateInit_(var strm: TZStreamRec; version: PChar; in inflateInit_() 249 function inflate(var strm: TZStreamRec; flush: Integer): Integer; external; in inflate() 250 function inflateEnd(var strm: TZStreamRec): Integer; external; in inflateEnd() 251 function inflateReset(var strm: TZStreamRec): Integer; external; in inflateReset() 289 strm: TZStreamRec; 292 FillChar(strm, sizeof(strm), 0); 293 strm.zalloc := zlibAllocMem; [all …]
|