Home | History | Annotate | Download | only in lib

Lines Matching refs:strm

113 bool IsFstHeader(istream &strm, const string &source) {
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) {
130 if (rewind) pos = strm.tellg();
132 ReadType(strm, &magic_number);
136 if (rewind) strm.seekg(pos);
140 ReadType(strm, &fsttype_);
141 ReadType(strm, &arctype_);
142 ReadType(strm, &version_);
143 ReadType(strm, &flags_);
144 ReadType(strm, &properties_);
145 ReadType(strm, &start_);
146 ReadType(strm, &numstates_);
147 ReadType(strm, &numarcs_);
148 if (!strm) {
152 if (rewind) strm.seekg(pos);
157 bool FstHeader::Write(ostream &strm, const string &source) const {
158 WriteType(strm, kFstMagicNumber);
159 WriteType(strm, fsttype_);
160 WriteType(strm, arctype_);
161 WriteType(strm, version_);
162 WriteType(strm, flags_);
163 WriteType(strm, properties_);
164 WriteType(strm, start_);
165 WriteType(strm, numstates_);
166 WriteType(strm, numarcs_);