Home | History | Annotate | Download | only in lib

Lines Matching refs:hdr

43                           const FstHeader *hdr = 0,
46 : source(src), header(hdr), isymbols(isym), osymbols(osym) {}
57 bool hdr = true, bool isym = true,
59 : source(src), write_header(hdr),
151 FstHeader hdr;
153 hdr = *opts.header;
155 if (!hdr.Read(strm, opts.source))
157 ropts.header = &hdr;
161 registr->GetReader(hdr.FstType());
163 LOG(ERROR) << "Fst::Read: Unknown FST type \"" << hdr.FstType()
459 int min_version, FstHeader *hdr) {
461 *hdr = *opts.header;
462 else if (!hdr->Read(strm, opts.source))
464 if (hdr->FstType() != type_) {
469 if (hdr->ArcType() != A::Type()) {
475 if (hdr->Version() < min_version) {
480 properties_ = hdr->Properties();
481 if (hdr->GetFlags() & FstHeader::HAS_ISYMBOLS)
483 if (hdr->GetFlags() & FstHeader::HAS_OSYMBOLS)
501 int version, FstHeader *hdr) const {
503 hdr->SetFstType(type_);
504 hdr->SetArcType(A::Type());
505 hdr->SetVersion(version);
506 hdr->SetProperties(properties_);
512 hdr->SetFlags(file_flags);
513 hdr->Write(strm, opts.source);