Lines Matching refs:opts
90 static ConstFstImpl<A, U> *Read(istream &strm, const FstReadOptions &opts);
205 const FstReadOptions &opts) {
208 if (!impl->ReadHeader(strm, opts, kMinFileVersion, &hdr)) {
221 LOG(ERROR) << "ConstFst::Read: Alignment failed: " << opts.source;
227 impl->states_region_ = MappedFile::Map(&strm, opts, b);
229 LOG(ERROR) << "ConstFst::Read: Read failed: " << opts.source;
236 LOG(ERROR) << "ConstFst::Read: Alignment failed: " << opts.source;
242 impl->arcs_region_ = MappedFile::Map(&strm, opts, b);
244 LOG(ERROR) << "ConstFst::Read: Read failed: " << opts.source;
282 static ConstFst<A, U> *Read(istream &strm, const FstReadOptions &opts) {
283 Impl* impl = Impl::Read(strm, opts);
294 virtual bool Write(ostream &strm, const FstWriteOptions &opts) const {
295 return WriteFst(*this, strm, opts);
304 const FstWriteOptions &opts);
344 const FstWriteOptions &opts) {
345 int file_version = opts.align ? ConstFstImpl<A, U>::kAlignedFileVersion :
376 FstImpl<A>::WriteFstHeader(fst, strm, opts, file_version, type, properties,
378 if (opts.align && !AlignOutput(strm)) {
396 if (opts.align && !AlignOutput(strm)) {
408 LOG(ERROR) << "ConstFst Write write failed: " << opts.source;
412 return FstImpl<A>::UpdateFstHeader(fst, strm, opts, file_version, type,