Home
last modified time | relevance | path

Searched refs:streams_ (Results 1 – 5 of 5) sorted by relevance

/external/openfst/src/include/fst/extensions/far/
Dsttable.h125 streams_.resize(filenames.size(), 0); in STTableReader()
128 streams_[i] = new ifstream( in STTableReader()
131 ReadType(*streams_[i], &magic_number); in STTableReader()
132 ReadType(*streams_[i], &file_version); in STTableReader()
146 streams_[i]->seekg(-static_cast<int>(sizeof(int64)), ios_base::end); in STTableReader()
147 ReadType(*streams_[i], &num_entries); in STTableReader()
148 streams_[i]->seekg(-static_cast<int>(sizeof(int64)) * in STTableReader()
151 for (size_t j = 0; (j < num_entries) && (*streams_[i]); ++j) in STTableReader()
152 ReadType(*streams_[i], &(positions_[i][j])); in STTableReader()
153 streams_[i]->seekg(positions_[i][0]); in STTableReader()
[all …]
Dstlist.h126 streams_.resize(filenames.size(), 0); in STListReader()
131 streams_[i] = &cin; in STListReader()
141 streams_[i] = new ifstream( in STListReader()
145 ReadType(*streams_[i], &magic_number); in STListReader()
146 ReadType(*streams_[i], &file_version); in STListReader()
160 ReadType(*streams_[i], &key); in STListReader()
163 if (!*streams_[i]) { in STListReader()
171 entry_ = entry_reader_(*streams_[current]); in STListReader()
172 if (!entry_ || !*streams_[current]) { in STListReader()
180 for (size_t i = 0; i < streams_.size(); ++i) { in ~STListReader()
[all …]
Dfar.h409 streams_.resize(keys_.size(), 0); in FstFarReader()
413 streams_[i] = &cin; in FstFarReader()
423 streams_[i] = new ifstream( in FstFarReader()
474 delete streams_[i]; in ~FstFarReader() local
481 streams_[pos_]->seekg(0); in ReadFst()
482 fst_ = Fst<A>::Read(*streams_[pos_], FstReadOptions()); in ReadFst()
491 vector<istream*> streams_; variable
/external/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl.cc353 : streams_(streams), stream_count_(count), bytes_retired_(0) { in ConcatenatingInputStream()
361 if (streams_[0]->Next(data, size)) return true; in Next()
364 bytes_retired_ += streams_[0]->ByteCount(); in Next()
365 ++streams_; in Next()
375 streams_[0]->BackUp(count); in BackUp()
385 int64 target_byte_count = streams_[0]->ByteCount() + count; in Skip()
386 if (streams_[0]->Skip(count)) return true; in Skip()
390 int64 final_byte_count = streams_[0]->ByteCount(); in Skip()
396 ++streams_; in Skip()
407 return bytes_retired_ + streams_[0]->ByteCount(); in ByteCount()
Dzero_copy_stream_impl.h321 ZeroCopyInputStream* const* streams_;