Example #1
0
BOOL md5EList::include(FileData &file) const
{
    std::wstring calcHash = file.MD5();
    if (calcHash[0] == L'!')
        return true;
    return std::binary_search(values.begin(),values.end(),calcHash);
}
Example #2
0
BOOL md5List::include(FileData &file) const
{
    return std::binary_search(values.begin(),values.end(),file.MD5());
}
Example #3
0
BOOL md5Match::include(FileData &file) const
{
    return file.MD5() == md5Val;
}