/external/srec/tools/thirdparty/OpenFst/fst/lib/ |
H A D | fst.cpp | 52 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, 74 Write(ostream &strm, const string &source) const argument [all...] |
H A D | util.h | 34 inline istream &ReadType(istream &strm, T *t) { argument 35 return strm.read(reinterpret_cast<char *>(t), sizeof(T)); 39 inline istream &ReadType(istream &strm, string *s) { argument 42 strm.read(reinterpret_cast<char *>(&ns), sizeof(ns)); 45 strm.read(&c, 1); 48 return strm; 55 inline ostream &WriteType(ostream &strm, const T t) { argument 56 return strm.write(reinterpret_cast<const char *>(&t), sizeof(T)); 60 inline ostream &WriteType(ostream &strm, const string s) { argument 62 strm [all...] |
H A D | expanded-fst.h | 38 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 D | symbol-table.cpp | 36 ifstream strm(filename.c_str()); 37 if (!strm) { 47 while (strm.getline(line, kLineLen)) { 102 SymbolTableImpl* SymbolTableImpl::Read(istream &strm, argument 105 ReadType(strm, &magic_number); 111 ReadType(strm, &name); 113 ReadType(strm, &impl->available_key_); 115 ReadType(strm, &size); 119 ReadType(strm, &symbol); 120 ReadType(strm, [all...] |
H A D | mutable-fst.h | 71 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));
|
/external/openfst/src/script/ |
H A D | text-io.cc | 34 ifstream strm(filename.c_str()); 35 if (!strm) { 45 while (strm.getline(line, kLineLen)) { 70 ostream *strm = &cout; local 72 strm = new ofstream(filename.c_str()); 73 if (!*strm) { 75 delete strm; 80 strm->precision(9); 82 *strm << s << "\t" << potential[s] << "\n"; 84 if (!*strm) [all...] |
/external/llvm/lib/Support/ |
H A D | Debug.cpp | 104 circular_raw_ostream strm; member in struct:dbgstream 107 strm(errs(), "*** Debug Log Output ***\n", 118 return thestrm.strm;
|
/external/openfst/src/lib/ |
H A D | util.cc | 63 bool AlignInput(istream &strm) { argument 66 int64 pos = strm.tellg(); 72 strm.read(&c, 1); 79 bool AlignOutput(ostream &strm) { argument 81 int64 pos = strm.tellp(); 87 strm.write("", 1);
|
H A D | fst.cc | 113 bool IsFstHeader(istream &strm, const string &source) { argument 114 int64 pos = strm.tellg(); 117 ReadType(strm, &magic_number); 122 strm.seekg(pos); 128 bool FstHeader::Read(istream &strm, const string &source, bool rewind) { argument 130 if (rewind) pos = strm.tellg(); 132 ReadType(strm, &magic_number); 136 if (rewind) strm.seekg(pos); 140 ReadType(strm, &fsttype_); 141 ReadType(strm, 157 Write(ostream &strm, const string &source) const argument [all...] |
H A D | symbol-table.cc | 42 SymbolTableImpl* SymbolTableImpl::ReadText(istream &strm, argument 49 while (strm.getline(line, kLineLen)) { 160 SymbolTableImpl* SymbolTableImpl::Read(istream &strm, argument 163 ReadType(strm, &magic_number); 164 if (!strm) { 169 ReadType(strm, &name); 171 ReadType(strm, &impl->available_key_); 173 ReadType(strm, &size); 174 if (!strm) { 184 ReadType(strm, 249 WriteText(ostream &strm, const SymbolTableTextOptions &opts) const argument [all...] |
/external/zlib/src/examples/ |
H A D | zpipe.c | 40 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 D | gzjoin.c | 254 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 D | zran.c | 150 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/chromium_org/third_party/zlib/ |
H A D | gzwrite.c | 19 z_streamp strm = &(state->strm); local 34 strm->zalloc = Z_NULL; 35 strm->zfree = Z_NULL; 36 strm->opaque = Z_NULL; 37 ret = deflateInit2(strm, state->level, Z_DEFLATED, 49 strm->avail_out = state->size; 50 strm->next_out = state->out; 51 state->next = strm->next_out; 65 z_streamp strm local 117 z_streamp strm = &(state->strm); local 151 z_streamp strm; local 227 z_streamp strm; local 285 z_streamp strm; local 361 z_streamp strm; local 464 z_streamp strm; local [all...] |
H A D | gzguts.h | 114 z_stream strm; /* stream structure in-place (not a pointer) */ member in struct:__anon14047
|
H A D | gzread.c | 49 gz_avail() assumes that strm->avail_in == 0. */ 53 z_streamp strm = &(state->strm); local 59 (unsigned *)&(strm->avail_in)) == -1) 61 strm->next_in = state->in; 67 #define NEXT() ((strm->avail_in == 0 && gz_avail(state) == -1) ? -1 : \ 68 (strm->avail_in == 0 ? -1 : \ 69 (strm->avail_in--, *(strm->next_in)++))) 79 z_streamp strm local 107 z_streamp strm = &(state->strm); local 239 z_streamp strm = &(state->strm); local 307 z_streamp strm = &(state->strm); local 369 z_streamp strm; local [all...] |
/external/zlib/src/ |
H A D | gzwrite.c | 19 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...] |
H A D | gzread.c | 48 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...] |
/external/openfst/src/include/fst/ |
H A D | expanded-fst.h | 46 static ExpandedFst<A> *Read(istream &strm, const FstReadOptions &opts) { argument 52 if (!hdr.Read(strm, opts.source)) 69 Fst<A> *fst = reader(strm, ropts); 78 ifstream strm(filename.c_str(), ifstream::in | ifstream::binary); 79 if (!strm) { 83 return Read(strm, FstReadOptions(filename)); 150 ifstream strm(filename.c_str(), ifstream::in | ifstream::binary); 151 if (!strm) { 155 return I::Read(strm, FstReadOptions(filename));
|
H A D | add-on.h | 200 static AddOnImpl<F, T> *Read(istream &strm, const FstReadOptions &opts) { argument 204 hdr.Read(strm, nopts.source); 208 if (!impl->ReadHeader(strm, nopts, kMinFileVersion, &hdr)) 213 ReadType(strm, &magic_number); // Ensures this is an add-on Fst. 221 F *fst = F::Read(strm, fopts); 227 ReadType(strm, &have_addon); 229 t = T::Read(strm); 240 bool Write(ostream &strm, const FstWriteOptions &opts) const { argument 245 WriteHeader(strm, nopts, kFileVersion, &hdr); 246 WriteType(strm, kAddOnMagicNumbe [all...] |
H A D | flags.h | 176 std::ostringstream strm; local 177 strm << default_value; 178 return strm.str();
|
H A D | interval-set.h | 59 istream &Read(istream &strm) { argument 61 ReadType(strm, &n); 63 ReadType(strm, &n); 65 return strm; 68 ostream &Write(ostream &strm) const { 70 WriteType(strm, n); 72 WriteType(strm, n); 73 return strm; 157 istream &Read(istream &strm) { argument 158 ReadType(strm, 364 operator <<(ostream &strm, const IntervalSet<T> &s) argument [all...] |
/external/bzip2/ |
H A D | decompress.c | 54 if (s->strm->avail_in == 0) RETURN(BZ_OK); \ 58 (*((UChar*)(s->strm->next_in)))); \ 60 s->strm->next_in++; \ 61 s->strm->avail_in--; \ 62 s->strm->total_in_lo32++; \ 63 if (s->strm->total_in_lo32 == 0) \ 64 s->strm->total_in_hi32++; \ 111 bz_stream* strm = s->strm; local
|
/external/opencv/otherlibs/highgui/ |
H A D | grfmt_pxm.cpp | 83 static int ReadNumber( RLByteStream& strm, int maxdigits ) argument 89 code = strm.GetByte(); 99 code = strm.GetByte(); 104 code = strm.GetByte(); 107 code = strm.GetByte(); 116 code = strm.GetByte();
|
/external/openfst/src/include/fst/extensions/far/ |
H A D | sttable.h | 248 ifstream *strm = streams_[id]; local 254 strm->seekg(positions[mid]); 256 ReadType(*strm, &key); 263 strm->seekg(positions[i - 1]); 264 ReadType(*strm, &key); 266 strm->seekg(positions[i]); 270 strm->seekg(positions[low]); 274 strm->seekg(positions[low]); 329 // Read(istream &strm, const string &filename); 334 ifstream strm(filenam [all...] |