|
|
typedef std::vector< HashString >::const_iterator | const_iterator |
| |
|
| static APT_PURE bool | supported (char const *const type) |
| |
◆ begin()
| const_iterator begin |
( |
| ) |
const |
|
inline |
iterator to the first element
◆ clear()
start fresh with a clear list
◆ empty()
◆ end()
| const_iterator end |
( |
| ) |
const |
|
inline |
iterator to the end element
◆ FileSize() [1/2]
| unsigned long long FileSize |
( |
| ) |
const |
◆ FileSize() [2/2]
| bool FileSize |
( |
unsigned long long const |
Size | ) |
|
◆ find()
| HashString const * find |
( |
char const *const |
type | ) |
const |
find best hash if no specific one is requested
- Parameters
-
| type | of the checksum to return, can be NULL |
- Returns
- If type is NULL (or the empty string) it will return the 'best' hash; otherwise the hash which was specifically requested. If no hash is found NULL will be returned.
Referenced by FileSize(), pkgAcqDiffIndex::ParseDiffIndex(), push_back(), and usable().
◆ operator==()
compare two HashStringList for similarity.
Two lists are similar if at least one hashtype is in both lists and the hashsum matches. All hashes are checked by default, if one doesn't match false is returned regardless of how many matched before. If a hash is forced, only this hash is compared, all others are ignored.
◆ push_back()
◆ size()
- Returns
- size of the list of HashStrings
◆ supported()
| bool supported |
( |
char const *const |
type | ) |
|
|
static |
check if the given hash type is supported
- Parameters
-
- Returns
- true if supported, otherwise false
Referenced by push_back().
◆ usable()
◆ VerifyFile()
| bool VerifyFile |
( |
std::string |
filename | ) |
const |
verify file against all hashes in the list
- Parameters
-
- Returns
- true if the file matches the hashsum, otherwise false
The documentation for this class was generated from the following files:
- apt-pkg/contrib/hashes.h
- apt-pkg/contrib/hashes.cc