Searched defs:strm (Results 1 - 25 of 200) sorted by last modified time

12345678

/external/zlib/src/
H A Ddeflate.h98 z_streamp strm; /* pointer back to this zlib stream */ member in struct:internal_state
H A Dgzguts.h191 z_stream strm; /* stream structure in-place (not a pointer) */ member in struct:__anon34354
H A Dgzread.c48 If strm->avail_in != 0, then the current data is moved to the beginning of
55 z_streamp strm = &(state->strm); local
60 if (strm->avail_in) { /* copy what's there to the start */
62 unsigned const char *q = strm->next_in;
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;
72 strm
89 z_streamp strm = &(state->strm); local
177 z_streamp strm = &(state->strm); local
229 z_streamp strm = &(state->strm); local
295 z_streamp strm; local
[all...]
H A Dgzwrite.c19 z_streamp strm = &(state->strm); local
39 strm->zalloc = Z_NULL;
40 strm->zfree = Z_NULL;
41 strm->opaque = Z_NULL;
42 ret = deflateInit2(strm, state->level, Z_DEFLATED,
57 strm->avail_out = state->size;
58 strm->next_out = state->out;
59 state->x.next = strm->next_out;
76 z_streamp strm local
139 z_streamp strm = &(state->strm); local
172 z_streamp strm; local
252 z_streamp strm; local
314 z_streamp strm; local
395 z_streamp strm; local
503 z_streamp strm; local
[all...]
/external/zlib/src/examples/
H A Dgun.c193 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 i
200 lunpipe(unsigned have, z_const unsigned char *next, struct ind *indp, int outfile, z_stream *strm) argument
383 gunpipe(z_stream *strm, int infile, int outfile) argument
548 gunzip(z_stream *strm, char *inname, char *outname, int test) argument
636 z_stream strm; local
[all...]
H A Dgzappend.c255 /* decompress gzip file "name", return strm with a deflate stream ready to
259 local int gzscan(char *name, z_stream *strm, int level) argument
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
388 gztack(char *name, int gd, z_stream *strm, int last) argument
469 z_stream strm; local
[all...]
H A Dgzjoin.c254 local void zpull(z_streamp strm, bin *in) argument
260 strm->avail_in = in->left;
261 strm->next_in = in->next;
289 z_stream strm; /* zlib inflate stream */ local
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,
[all...]
H A Dgzlog.c614 z_stream strm; local
620 strm.zalloc = Z_NULL;
621 strm.zfree = Z_NULL;
622 strm.opaque = Z_NULL;
623 if (deflateInit2(&strm, Z_DEFAULT_COMPRESSION, Z_DEFLATED, -15, 8,
634 deflateEnd(&strm);
638 deflateSetDictionary(&strm, buf, (uint)dict);
647 deflateEnd(&strm);
650 deflatePrime(&strm, (8 - log->back) & 7, *buf);
653 strm
[all...]
H A Dzpipe.c40 z_stream strm; local
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
96 z_stream strm; local
[all...]
H A Dzran.c150 z_stream strm; local
155 strm.zalloc = Z_NULL;
156 strm.zfree = Z_NULL;
157 strm.opaque = Z_NULL;
158 strm.avail_in = 0;
159 strm.next_in = Z_NULL;
160 ret = inflateInit2(&strm, 47); /* automatic zlib or gzip decoding */
169 strm.avail_out = 0;
172 strm.avail_in = fread(input, 1, CHUNK, in);
177 if (strm
253 z_stream strm; local
[all...]
/external/zlib/src/test/
H A Dinfcover.c32 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
158 mem_setup(z_stream *strm) argument
176 mem_limit(z_stream *strm, size_t limit) argument
184 mem_used(z_stream *strm, char *prefix) argument
192 mem_high(z_stream *strm, char *prefix) argument
200 mem_done(z_stream *strm, char *prefix) argument
290 z_stream strm, copy; local
353 z_stream strm; local
391 z_stream strm, copy; local
473 z_stream strm; local
513 z_stream strm; local
[all...]
H A Dminigzip.c175 z_stream strm; member in struct:gzFile_s
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
268 z_stream *strm; local
300 z_stream *strm; local
[all...]
/external/valgrind/main/perf/
H A Dbz2.c232 bz_stream* strm,
239 bz_stream* strm,
244 bz_stream* strm
248 bz_stream *strm,
254 bz_stream* strm
258 bz_stream *strm
484 #define BZALLOC(nnn) (strm->bzalloc)(strm->opaque,(nnn),1)
485 #define BZFREE(ppp) (strm->bzfree)(strm
581 bz_stream* strm; member in struct:__anon33256
732 bz_stream* strm; member in struct:__anon33257
1476 bz_stream* strm = s->strm; local
4514 BZ2_bzCompressInit( bz_stream* strm, int blockSize100k, int verbosity, int workFactor ) argument
4773 BZ2_bzCompress( bz_stream *strm, int action ) argument
4858 BZ2_bzDecompressInit( bz_stream* strm, int verbosity, int small ) argument
5248 bz_stream strm; member in struct:__anon33258
5606 bz_stream strm; local
5657 bz_stream strm; local
[all...]
H A Dtest_input_for_tinycc.c940 bz_stream* strm,
947 bz_stream* strm,
952 bz_stream* strm
956 bz_stream *strm,
962 bz_stream* strm
966 bz_stream *strm
1009 bz_stream* strm; member in struct:__anon33269
1100 bz_stream* strm; member in struct:__anon33270
1433 bz_stream* strm = s->strm; local
3636 BZ2_bzCompressInit( bz_stream* strm, int blockSize100k, int verbosity, int workFactor ) argument
3865 BZ2_bzCompress( bz_stream *strm, int action ) argument
3950 BZ2_bzDecompressInit( bz_stream* strm, int verbosity, int small ) argument
4331 bz_stream strm; local
4382 bz_stream strm; local
[all...]
/external/valgrind/main/VEX/switchback/
H A Dtest_bzip2.c216 bz_stream* strm,
223 bz_stream* strm,
228 bz_stream* strm
232 bz_stream *strm,
238 bz_stream* strm
242 bz_stream *strm
468 #define BZALLOC(nnn) (strm->bzalloc)(strm->opaque,(nnn),1)
469 #define BZFREE(ppp) (strm->bzfree)(strm
565 bz_stream* strm; member in struct:__anon32327
716 bz_stream* strm; member in struct:__anon32328
1461 bz_stream* strm = s->strm; local
4499 BZ2_bzCompressInit( bz_stream* strm, int blockSize100k, int verbosity, int workFactor ) argument
4758 BZ2_bzCompress( bz_stream *strm, int action ) argument
4843 BZ2_bzDecompressInit( bz_stream* strm, int verbosity, int small ) argument
5233 bz_stream strm; member in struct:__anon32329
5591 bz_stream strm; local
5642 bz_stream strm; local
[all...]
/external/valgrind/main/exp-sgcheck/tests/
H A Dhackedbz2.c239 bz_stream* strm,
246 bz_stream* strm,
251 bz_stream* strm
255 bz_stream *strm,
261 bz_stream* strm
265 bz_stream *strm
491 #define BZALLOC(nnn) (strm->bzalloc)(strm->opaque,(nnn),1)
492 #define BZFREE(ppp) (strm->bzfree)(strm
588 bz_stream* strm; member in struct:__anon32817
739 bz_stream* strm; member in struct:__anon32818
1485 bz_stream* strm = s->strm; local
4523 BZ2_bzCompressInit( bz_stream* strm, int blockSize100k, int verbosity, int workFactor ) argument
4782 BZ2_bzCompress( bz_stream *strm, int action ) argument
4867 BZ2_bzDecompressInit( bz_stream* strm, int verbosity, int small ) argument
5257 bz_stream strm; member in struct:__anon32819
5615 bz_stream strm; local
5666 bz_stream strm; local
[all...]
/external/valgrind/main/memcheck/tests/
H A Dorigin5-bz2.c232 bz_stream* strm,
239 bz_stream* strm,
244 bz_stream* strm
248 bz_stream *strm,
254 bz_stream* strm
258 bz_stream *strm
484 #define BZALLOC(nnn) (strm->bzalloc)(strm->opaque,(nnn),1)
485 #define BZFREE(ppp) (strm->bzfree)(strm
581 bz_stream* strm; member in struct:__anon33059
732 bz_stream* strm; member in struct:__anon33060
1476 bz_stream* strm = s->strm; local
4514 BZ2_bzCompressInit( bz_stream* strm, int blockSize100k, int verbosity, int workFactor ) argument
4774 BZ2_bzCompress( bz_stream *strm, int action ) argument
4858 BZ2_bzDecompressInit( bz_stream* strm, int verbosity, int small ) argument
5248 bz_stream strm; member in struct:__anon33061
5606 bz_stream strm; local
5658 bz_stream strm; local
[all...]
H A Dvarinfo6.c270 bz_stream* strm,
277 bz_stream* strm,
282 bz_stream* strm
286 bz_stream *strm,
292 bz_stream* strm
296 bz_stream *strm
522 #define BZALLOC(nnn) (strm->bzalloc)(strm->opaque,(nnn),1)
523 #define BZFREE(ppp) (strm->bzfree)(strm
619 bz_stream* strm; member in struct:__anon33075
770 bz_stream* strm; member in struct:__anon33076
1514 bz_stream* strm = s->strm; local
4552 BZ2_bzCompressInit( bz_stream* strm, int blockSize100k, int verbosity, int workFactor ) argument
4811 BZ2_bzCompress( bz_stream *strm, int action ) argument
4896 BZ2_bzDecompressInit( bz_stream* strm, int verbosity, int small ) argument
5286 bz_stream strm; member in struct:__anon33077
5644 bz_stream strm; local
5695 bz_stream strm; local
[all...]
/external/srec/tools/thirdparty/OpenFst/fst/lib/
H A Dconst-fst.h68 static ConstFstImpl<A> *Read(istream &strm, const FstReadOptions &opts);
70 bool Write(ostream &strm, const FstWriteOptions &opts) const;
161 ConstFstImpl<A> *ConstFstImpl<A>::Read(istream &strm, argument
165 if (!impl->ReadHeaderAndSymbols(strm, opts, kMinFileVersion, &hdr))
174 for (int i = 0; i < kFileAlign && strm.tellg() % kFileAlign; ++i)
175 strm.read(&c, 1);
178 strm.read(reinterpret_cast<char *>(impl->states_), b);
179 if (!strm) {
185 for (int i = 0; i < kFileAlign && strm.tellg() % kFileAlign; ++i)
186 strm
196 Write(ostream &strm, const FstWriteOptions &opts) const argument
278 Read(istream &strm, const FstReadOptions &opts) argument
294 Write(ostream &strm, const FstWriteOptions &opts) const argument
[all...]
H A Dencode.h128 bool Write(ostream &strm, const string &source) const { argument
129 WriteType(strm, kEncodeMagicNumber);
130 WriteType(strm, flags_);
132 WriteType(strm, size);
135 WriteType(strm, tuple->ilabel);
136 WriteType(strm, tuple->olabel);
137 tuple->weight.Write(strm);
139 strm.flush();
140 if (!strm) {
147 bool Read(istream &strm, cons argument
278 Write(ostream &strm, const string& source) argument
291 Read(istream &strm, const string& source, EncodeType type) argument
[all...]
H A Dexpanded-fst.h38 static ExpandedFst<A> *Read(istream &strm, const FstReadOptions &opts) { argument
44 if (!hdr.Read(strm, opts.source))
61 Fst<A> *fst = reader(strm, ropts);
67 ifstream strm(filename.c_str());
68 if (!strm) {
72 return Read(strm, FstReadOptions(filename));
H A Dfloat-weight.h46 istream &Read(istream &strm) { argument
47 return ReadType(strm, &value_);
50 ostream &Write(ostream &strm) const {
51 return WriteType(strm, value_);
85 inline ostream &operator<<(ostream &strm, const FloatWeight &w) { argument
87 return strm << "Infinity";
89 return strm << "-Infinity";
91 return strm << "BadFloat";
93 return strm << w.Value();
96 inline istream &operator>>(istream &strm, FloatWeigh argument
[all...]
H A Dfst.cpp52 bool FstHeader::Read(istream &strm, const string &source) { argument
54 ReadType(strm, &magic_number);
60 ReadType(strm, &fsttype_);
61 ReadType(strm, &arctype_);
62 ReadType(strm, &version_);
63 ReadType(strm, &flags_);
64 ReadType(strm, &properties_);
65 ReadType(strm, &start_);
66 ReadType(strm, &numstates_);
67 ReadType(strm,
76 Write(ostream &strm, const string &source) const argument
[all...]
H A Dfst.h96 bool Read(istream &strm, const string &source);
97 bool Write(ostream &strm, const string &source) const;
149 static Fst<A> *Read(istream &strm, const FstReadOptions &opts) { argument
155 if (!hdr.Read(strm, opts.source))
168 return reader(strm, ropts);
173 ifstream strm(filename.c_str());
174 if (!strm) {
178 return Read(strm, FstReadOptions(filename));
182 virtual bool Write(ostream &strm, const FstWriteOptions &opts) const { argument
458 bool ReadHeaderAndSymbols(istream &strm, cons argument
500 WriteHeaderAndSymbols(ostream &strm, const FstWriteOptions& opts, int version, FstHeader *hdr) const argument
[all...]
H A Dmutable-fst.h71 static MutableFst<A> *Read(istream &strm, const FstReadOptions &opts) { argument
77 if (!hdr.Read(strm, opts.source))
94 Fst<A> *fst = reader(strm, ropts);
100 ifstream strm(filename.c_str());
101 if (!strm) {
105 return Read(strm, FstReadOptions(filename));

Completed in 839 milliseconds

12345678