Home | History | Annotate | Download | only in lib

Lines Matching refs:strm

110 bool IsFstHeader(istream &strm, const string &source) {
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) {
127 if (rewind) pos = strm.tellg();
129 ReadType(strm, &magic_number);
133 if (rewind) strm.seekg(pos);
137 ReadType(strm, &fsttype_);
138 ReadType(strm, &arctype_);
139 ReadType(strm, &version_);
140 ReadType(strm, &flags_);
141 ReadType(strm, &properties_);
142 ReadType(strm, &start_);
143 ReadType(strm, &numstates_);
144 ReadType(strm, &numarcs_);
145 if (!strm) {
149 if (rewind) strm.seekg(pos);
154 bool FstHeader::Write(ostream &strm, const string &source) const {
155 WriteType(strm, kFstMagicNumber);
156 WriteType(strm, fsttype_);
157 WriteType(strm, arctype_);
158 WriteType(strm, version_);
159 WriteType(strm, flags_);
160 WriteType(strm, properties_);
161 WriteType(strm, start_);
162 WriteType(strm, numstates_);
163 WriteType(strm, numarcs_);