Пример #1
0
BOOL sha1EList::include(FileData &file) const
{
    std::wstring calcHash = file.SHA1();
    if (calcHash[0] == L'!')
        return true;
    return std::binary_search(values.begin(),values.end(),calcHash);
}
Пример #2
0
BOOL sha1List::include(FileData &file) const
{
    return std::binary_search(values.begin(),values.end(),file.SHA1());
}
Пример #3
0
BOOL sha1Match::include(FileData &file) const
{
    return file.SHA1() == sha1Val;
}