TilesetType_CComic_Sprite::Certainty TilesetType_CComic_Sprite::isInstance( stream::input& content) const { stream::pos len = content.size(); if (len % 160 == 0) return Certainty::PossiblyYes; return Certainty::DefinitelyNo; }
ArchiveType::Certainty ArchiveType_DA_Levels::isInstance( stream::input& content) const { stream::pos lenArchive = content.size(); if (lenArchive == 1152 * 10) { return Certainty::PossiblyYes; } return Certainty::DefinitelyNo; }
ImageType::Certainty ImageType_VGA_Planar_RawBase::isInstance( stream::input& content) const { stream::pos len = content.size(); // TESTED BY: TODO if (len == 64000) return Certainty::PossiblyYes; // TESTED BY: TODO return Certainty::DefinitelyNo; }
MusicType::Certainty MusicType_IBK::isInstance(stream::input& content) const { // Make sure the signature matches // TESTED BY: mus_ibk_isinstance_c01 char sig[4]; content.seekg(0, stream::start); content.read(sig, 4); if (strncmp(sig, "IBK\x1A", 4) != 0) return Certainty::DefinitelyNo; // All files are the same size // TESTED BY: mus_ibk_isinstance_c02 if (content.size() != IBK_LENGTH) return Certainty::DefinitelyNo; // TESTED BY: mus_ibk_isinstance_c00 return Certainty::DefinitelyYes; }