예제 #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;
}