Home
last modified time | relevance | path

Searched refs:avail_in (Results 1 – 25 of 95) sorted by relevance

1234

/external/libxml2/
Dxzlib.c130 state->strm.avail_in = 0; /* no input data yet */ in xz_reset()
132 state->zstrm.avail_in = 0; /* no input data yet */ in xz_reset()
261 unsigned tmp = strm->avail_in; in xz_avail()
264 strm->avail_in = tmp; in xz_avail()
267 strm->avail_in = tmp; in xz_avail()
278 state->strm.avail_in = state->zstrm.avail_in; in xz_avail_zstrm()
281 state->zstrm.avail_in = (uInt) state->strm.avail_in; in xz_avail_zstrm()
292 return strm->avail_in >= 6 && memcmp(state->in, "\3757zXZ", 6) == 0; in is_format_xz()
306 if (strm->avail_in < 13) in is_format_lzma()
353 #define NEXT() ((strm->avail_in == 0 && xz_avail(state) == -1) ? -1 : \
[all …]
/external/zlib/src/
Dgzread.c60 if (strm->avail_in) { /* copy what's there to the start */
63 unsigned n = strm->avail_in;
68 if (gz_load(state, state->in + strm->avail_in,
69 state->size - strm->avail_in, &got) == -1)
71 strm->avail_in += got;
110 state->strm.avail_in = 0;
122 if (strm->avail_in < 2) {
125 if (strm->avail_in == 0)
136 if (strm->avail_in > 1 &&
147 strm->avail_in = 0;
[all …]
Dgzwrite.c84 got = write(state->fd, strm->next_in, strm->avail_in);
85 if (got < 0 || (unsigned)got != strm->avail_in) {
89 strm->avail_in = 0;
142 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
154 strm->avail_in = n;
212 if (strm->avail_in == 0)
214 have = (unsigned)((strm->next_in + strm->avail_in) - state->in);
219 strm->avail_in += copy;
229 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1)
233 strm->avail_in = len;
[all …]
Duncompr.c34 stream.avail_in = (uInt)sourceLen;
36 if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;
51 if (err == Z_NEED_DICT || (err == Z_BUF_ERROR && stream.avail_in == 0))
/external/pdfium/core/src/fxcodec/fx_zlib/zlib_v128/
Dgzread.c60 if (strm->avail_in) { /* copy what's there to the start */ in gz_avail()
63 unsigned n = strm->avail_in; in gz_avail()
68 if (gz_load(state, state->in + strm->avail_in, in gz_avail()
69 state->size - strm->avail_in, &got) == -1) in gz_avail()
71 strm->avail_in += got; in gz_avail()
110 state->strm.avail_in = 0; in gz_look()
122 if (strm->avail_in < 2) { in gz_look()
125 if (strm->avail_in == 0) in gz_look()
136 if (strm->avail_in > 1 && in gz_look()
147 strm->avail_in = 0; in gz_look()
[all …]
Dgzwrite.c84 got = write(state->fd, strm->next_in, strm->avail_in); in gz_comp()
85 if (got < 0 || (unsigned)got != strm->avail_in) { in gz_comp()
89 strm->avail_in = 0; in gz_comp()
142 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1) in gz_zero()
154 strm->avail_in = n; in gz_zero()
212 if (strm->avail_in == 0) in gzwrite()
214 have = (unsigned)((strm->next_in + strm->avail_in) - state->in); in gzwrite()
219 strm->avail_in += copy; in gzwrite()
229 if (strm->avail_in && gz_comp(state, Z_NO_FLUSH) == -1) in gzwrite()
233 strm->avail_in = len; in gzwrite()
[all …]
Dfx_zlib_uncompr.c34 stream.avail_in = (uInt)sourceLen; in uncompress()
36 if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR; in uncompress()
51 if (err == Z_NEED_DICT || (err == Z_BUF_ERROR && stream.avail_in == 0)) in uncompress()
/external/protobuf/src/google/protobuf/io/
Dgzip_stream.cc57 zcontext_.avail_in = 0; in GzipInputStream()
90 } else if (zcontext_.avail_in == 0) { in Inflate()
101 zcontext_.avail_in = in_size; in Inflate()
219 zcontext_.avail_in = 0; in Init()
275 if (zcontext_.avail_in != 0) { in Next()
281 if (zcontext_.avail_in == 0) { in Next()
284 zcontext_.avail_in = input_buffer_length_; in Next()
294 GOOGLE_CHECK_GE(zcontext_.avail_in, count); in BackUp()
295 zcontext_.avail_in -= count; in BackUp()
298 return zcontext_.total_in + zcontext_.avail_in; in ByteCount()
[all …]
/external/zlib/src/examples/
Dzran.c158 strm.avail_in = 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()
193 totin += strm.avail_in; in build_index()
196 totin -= strm.avail_in; in build_index()
224 } while (strm.avail_in != 0); in build_index()
272 strm.avail_in = 0; in extract()
292 strm.avail_in = 0; in extract()
314 if (strm.avail_in == 0) { in extract()
315 strm.avail_in = fread(input, 1, CHUNK, in); in extract()
[all …]
Dzpipe.c54 strm.avail_in = fread(in, 1, CHUNK, source); in def()
75 assert(strm.avail_in == 0); /* all input will be used */ in def()
104 strm.avail_in = 0; in inf()
112 strm.avail_in = fread(in, 1, CHUNK, source); in inf()
117 if (strm.avail_in == 0) in inf()
Dfitblk.c80 def->avail_in = fread(raw, 1, RAWLEN, in); in partcompress()
113 def->avail_in = RAWLEN - inf->avail_out; in recompress()
183 inf.avail_in = 0; in main()
193 inf.avail_in = size + EXCESS; in main()
208 inf.avail_in = size - MARGIN; /* assure stream will complete */ in main()
Dgzjoin.c260 strm->avail_in = in->left; in zpull()
303 strm.avail_in = 0; in gzcopy()
319 if (strm.avail_in == 0 && strm.avail_out != 0) { in gzcopy()
359 if (strm.avail_in == 0) { in gzcopy()
374 in->left = strm.avail_in; in gzcopy()
Dgzappend.c293 strm->avail_in = gz.left; in gzscan()
299 if (strm->avail_in == 0) { in gzscan()
301 strm->avail_in = gz.left; in gzscan()
331 lastoff = lseek(gz.fd, 0L, SEEK_CUR) - strm->avail_in; in gzscan()
336 gz.left = strm->avail_in; in gzscan()
418 strm->avail_in = (unsigned)len; in gztack()
/external/zlib/src/test/
Dinfcover.c294 strm.avail_in = 0; in inf()
314 strm.avail_in = step; in inf()
338 have += strm.avail_in; in inf()
339 strm.avail_in = step > have ? have : step; in inf()
340 have -= strm.avail_in; in inf()
341 } while (strm.avail_in); in inf()
356 strm.avail_in = 0; in cover_support()
374 strm.avail_in = 0; in cover_support()
380 strm.avail_in = 0; in cover_support()
414 strm.avail_in = 0; in cover_wrap()
[all …]
Dexample.c219 c_stream.avail_in = c_stream.avail_out = 1; /* force small buffers */
252 d_stream.avail_in = 0;
259 d_stream.avail_in = d_stream.avail_out = 1; /* force small buffers */
300 c_stream.avail_in = (uInt)uncomprLen;
303 if (c_stream.avail_in != 0) {
311 c_stream.avail_in = (uInt)comprLen/2;
318 c_stream.avail_in = (uInt)uncomprLen;
348 d_stream.avail_in = (uInt)comprLen;
392 c_stream.avail_in = 3;
398 c_stream.avail_in = len - 3;
[all …]
/external/zlib/src/contrib/pascal/
Dexample.pas205 c_stream.avail_in := 1;
241 d_stream.avail_in := 0;
251 d_stream.avail_in := 1;
291 c_stream.avail_in := Integer(uncomprLen);
294 if c_stream.avail_in <> 0 then
300 c_stream.avail_in := Integer(comprLen div 2);
307 c_stream.avail_in := Integer(uncomprLen);
336 d_stream.avail_in := Integer(comprLen);
384 c_stream.avail_in := 3;
390 c_stream.avail_in := len - 3;
[all …]
/external/zlib/src/contrib/delphi/
DZLib.pas25 avail_in: Integer; // number of bytes available at next_in
299 strm.avail_in := InBytes;
342 strm.avail_in := InBytes;
375 strm.avail_in := InBytes;
421 FZRec.avail_in := 0;
447 FZRec.avail_in := Count;
449 while (FZRec.avail_in > 0) do
487 FZRec.avail_in := 0;
493 FStrm.Seek(-FZRec.avail_in, 1);
505 if FZRec.avail_in = 0 then
[all …]
/external/squashfs-tools/squashfs-tools/
Dlzma_xz_wrapper.c58 strm.avail_in = size; in lzma_compress()
128 strm.avail_in = LZMA_HEADER_SIZE; in lzma_uncompress()
132 if(res != LZMA_OK || strm.avail_in != 0) { in lzma_uncompress()
138 strm.avail_in = size - LZMA_HEADER_SIZE; in lzma_uncompress()
144 strm.total_out >= uncompressed_size && strm.avail_in == 0)) in lzma_uncompress()
/external/skia/src/core/
DSkFlate.cpp41 flateData.avail_in = 0; in doFlate()
57 flateData.avail_in = 0; in doFlate()
60 flateData.avail_in = SkToUInt(inputLength); in doFlate()
75 if (flateData.avail_in == 0) { in doFlate()
82 flateData.avail_in = SkToUInt(read); in doFlate()
149 zStream->avail_in = SkToInt(inBufferSize); in do_deflate()
159 } while (zStream->avail_in || !zStream->avail_out); in do_deflate()
/external/libvncserver/libvncserver/
Dzrleoutstream.c108 os->zs.avail_in = ZRLE_BUFFER_LENGTH (&os->in); in zrleOutStreamFlush()
111 rfbLog("zrleOutStreamFlush: avail_in %d\n", os->zs.avail_in); in zrleOutStreamFlush()
114 while (os->zs.avail_in != 0) { in zrleOutStreamFlush()
129 os->zs.avail_in, os->zs.avail_out); in zrleOutStreamFlush()
160 os->zs.avail_in = ZRLE_BUFFER_LENGTH (&os->in); in zrleOutStreamOverrun()
176 os->zs.avail_in, os->zs.avail_out); in zrleOutStreamOverrun()
194 if (os->zs.avail_in == 0) { in zrleOutStreamOverrun()
/external/squashfs-tools/kernel/fs/squashfs/
Dblock.c165 msblk->stream.avail_in = 0; in squashfs_read_data()
169 if (msblk->stream.avail_in == 0 && k < b) { in squashfs_read_data()
183 msblk->stream.avail_in = avail; in squashfs_read_data()
206 if (msblk->stream.avail_in == 0 && k < b) in squashfs_read_data()
214 msblk->stream.avail_in, in squashfs_read_data()
/external/libvncserver/libvncclient/
Dzlib.c69 client->decompStream.avail_in = 0; in HandleZlibBPP()
111 client->decompStream.avail_in = toRead; in HandleZlibBPP()
132 if (( client->decompStream.avail_in > 0 ) && in HandleZlibBPP()
/external/valgrind/perf/
Dtest_input_for_tinycc.c922 unsigned int avail_in; member
1519avail_in == 0) { retVal = 0; goto save_state_and_return; };; s->bsBuff = (s->bsBuff << 8) | ((UInt… in BZ2_decompress()
1522avail_in == 0) { retVal = 0; goto save_state_and_return; };; s->bsBuff = (s->bsBuff << 8) | ((UInt… in BZ2_decompress()
1525avail_in == 0) { retVal = 0; goto save_state_and_return; };; s->bsBuff = (s->bsBuff << 8) | ((UInt… in BZ2_decompress()
1528avail_in == 0) { retVal = 0; goto save_state_and_return; };; s->bsBuff = (s->bsBuff << 8) | ((UInt… in BZ2_decompress()
1544avail_in == 0) { retVal = 0; goto save_state_and_return; };; s->bsBuff = (s->bsBuff << 8) | ((UInt… in BZ2_decompress()
1548avail_in == 0) { retVal = 0; goto save_state_and_return; };; s->bsBuff = (s->bsBuff << 8) | ((UInt… in BZ2_decompress()
1550avail_in == 0) { retVal = 0; goto save_state_and_return; };; s->bsBuff = (s->bsBuff << 8) | ((UInt… in BZ2_decompress()
1552avail_in == 0) { retVal = 0; goto save_state_and_return; };; s->bsBuff = (s->bsBuff << 8) | ((UInt… in BZ2_decompress()
1554avail_in == 0) { retVal = 0; goto save_state_and_return; };; s->bsBuff = (s->bsBuff << 8) | ((UInt… in BZ2_decompress()
[all …]
/external/bzip2/
Dbzlib.c300 if (s->strm->avail_in == 0) break; in copy_input_until_stop()
304 s->strm->avail_in--; in copy_input_until_stop()
316 if (s->strm->avail_in == 0) break; in copy_input_until_stop()
322 s->strm->avail_in--; in copy_input_until_stop()
395 if (s->strm->avail_in == 0) { in handle_compress()
429 s->avail_in_expect = strm->avail_in; in BZ_API()
435 s->avail_in_expect = strm->avail_in; in BZ_API()
444 if (s->avail_in_expect != s->strm->avail_in) in BZ_API()
454 if (s->avail_in_expect != s->strm->avail_in) in BZ_API()
956 bzf->strm.avail_in = 0; in BZ_API()
[all …]
/external/elfutils/src/libdwfl/
Dgzip.c172 z_stream z = { .next_in = mapped, .avail_in = mapped_size }; in unzip()
182 if (z.avail_in == 0 && input_buffer != NULL) in unzip()
192 z.avail_in = n; in unzip()
198 if (!bigger_buffer (z.avail_in)) in unzip()

1234