Lines Matching defs:RIFF
11 #include "RIFF.h"
449 // A file is a RIFF chunk with type 'CdIx'.
464 auto RIFF = riff::readFile(Data);
465 if (!RIFF)
466 return RIFF.takeError();
467 if (RIFF->Type != riff::fourCC("CdIx"))
468 return error("wrong RIFF filetype: {0}", riff::fourCCStr(RIFF->Type));
470 for (const auto &Chunk : RIFF->Chunks)
562 riff::File RIFF;
563 RIFF.Type = riff::fourCC("CdIx");
570 RIFF.Chunks.push_back({riff::fourCC("meta"), Meta});
623 RIFF.Chunks.push_back({riff::fourCC("stri"), StringSection});
631 RIFF.Chunks.push_back({riff::fourCC("symb"), SymbolSection});
640 RIFF.Chunks.push_back({riff::fourCC("refs"), RefsSection});
650 RIFF.Chunks.push_back({riff::fourCC("rela"), RelationSection});
660 RIFF.Chunks.push_back({riff::fourCC("srcs"), SrcsSection});
669 RIFF.Chunks.push_back({riff::fourCC("cmdl"), CmdlSection});
672 OS << RIFF;
683 case IndexFileFormat::RIFF:
695 if (Data.starts_with("RIFF")) {
701 return error("Not a RIFF file and failed to parse as YAML: {0}",