/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 = &std::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/webp/src/dec/ |
H A D | alpha.c | 40 z_stream strm; local 42 memset(&strm, 0, sizeof(strm)); 43 if (inflateInit(&strm) != Z_OK) { 46 strm.avail_in = data_size; 47 strm.next_in = (unsigned char*)data; 49 strm.avail_out = output_size; 50 strm.next_out = output; 51 ret = inflate(&strm, Z_NO_FLUSH); 55 } while (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 | 62 bool AlignInput(istream &strm, int align) { argument 65 int64 pos = strm.tellg(); 71 strm.read(&c, 1); 78 bool AlignOutput(ostream &strm, int align) { argument 80 int64 pos = strm.tellp(); 86 strm.write("", 1);
|
H A D | fst.cc | 110 bool IsFstHeader(istream &strm, const string &source) { argument 111 int64 pos = strm.tellg(); 114 ReadType(strm, &magic_number); 119 strm.seekg(pos); 125 bool FstHeader::Read(istream &strm, const string &source, bool rewind) { argument 127 if (rewind) pos = strm.tellg(); 129 ReadType(strm, &magic_number); 133 if (rewind) strm.seekg(pos); 137 ReadType(strm, &fsttype_); 138 ReadType(strm, 154 Write(ostream &strm, const string &source) const argument [all...] |
H A D | symbol-table.cc | 38 SymbolTableImpl* SymbolTableImpl::ReadText(istream &strm, argument 45 while (strm.getline(line, kLineLen)) { 145 SymbolTableImpl* SymbolTableImpl::Read(istream &strm, argument 148 ReadType(strm, &magic_number); 149 if (!strm) { 154 ReadType(strm, &name); 156 ReadType(strm, &impl->available_key_); 158 ReadType(strm, &size); 159 if (!strm) { 169 ReadType(strm, [all...] |
/external/webp/src/enc/ |
H A D | alpha.c | 34 z_stream strm; local 39 memset(&strm, 0, sizeof(strm)); 40 if (deflateInit(&strm, algo ? Z_BEST_SPEED : Z_BEST_COMPRESSION) != Z_OK) { 43 strm.next_in = (unsigned char*)data; 44 strm.avail_in = data_size; 48 strm.next_out = chunk; 49 strm.avail_out = CHUNK_SIZE; 50 ret = deflate(&strm, Z_FINISH); 54 size_out = CHUNK_SIZE - strm [all...] |
/external/zlib/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 | 253 local void zpull(z_streamp strm, bin *in) argument 259 strm->avail_in = in->left; 260 strm->next_in = in->next; 288 z_stream strm; /* zlib inflate stream */ local 299 strm.zalloc = Z_NULL; 300 strm.zfree = Z_NULL; 301 strm.opaque = Z_NULL; 302 strm.avail_in = 0; 303 strm.next_in = Z_NULL; 304 ret = inflateInit2(&strm, [all...] |
H A D | zran.c | 145 z_stream strm; local 150 strm.zalloc = Z_NULL; 151 strm.zfree = Z_NULL; 152 strm.opaque = Z_NULL; 153 strm.avail_in = 0; 154 strm.next_in = Z_NULL; 155 ret = inflateInit2(&strm, 47); /* automatic zlib or gzip decoding */ 164 strm.avail_out = 0; 167 strm.avail_in = fread(input, 1, CHUNK, in); 172 if (strm 248 z_stream strm; local [all...] |
/external/zlib/ |
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) 61 memmove(state->in, strm->next_in, strm->avail_in); 62 if (gz_load(state, state->in + strm->avail_in, 63 state->size - strm->avail_in, &got) == -1) 65 strm->avail_in += got; 66 strm 83 z_streamp strm = &(state->strm); local 171 z_streamp strm = &(state->strm); local 223 z_streamp strm = &(state->strm); local 289 z_streamp strm; local [all...] |
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 173 z_streamp strm; local 249 z_streamp strm; local 307 z_streamp strm; local 383 z_streamp strm; local 490 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 | float-weight.h | 69 istream &Read(istream &strm) { argument 70 return ReadType(strm, &value_); 73 ostream &Write(ostream &strm) const { 74 return WriteType(strm, value_); 153 inline ostream &operator<<(ostream &strm, const FloatWeightTpl<T> &w) { argument 155 return strm << "Infinity"; 157 return strm << "-Infinity"; 159 return strm << "BadNumber"; 161 return strm << w.Value(); 165 inline istream &operator>>(istream &strm, FloatWeightTp argument [all...] |
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 | far.h | 145 void operator()(ostream &strm, const Fst<A> &fst) const { argument 146 fst.Write(strm, FstWriteOptions()); 233 Fst<A> *operator()(istream &strm) const { 234 return Fst<A>::Read(strm, FstReadOptions());
|
H A D | sttable.h | 247 ifstream *strm = streams_[id]; local 253 strm->seekg(positions[mid]); 255 ReadType(*strm, &key); 262 strm->seekg(positions[i - 1]); 263 ReadType(*strm, &key); 265 strm->seekg(positions[i]); 269 strm->seekg(positions[low]); 273 strm->seekg(positions[low]); 328 // Read(istream &strm, const string &filename); 333 ifstream strm(filenam [all...] |