jigdo API
Last update by Admin on 2010-05-23
MkTemplate::PartialMatch Class Reference
One object for each offset in image where any file /might/ match. More...
#include <partialmatch.hh>
Public Member Functions | |
uint64 | startOffset () const |
Offset in image at which this match starts. | |
void | setStartOffset (uint64 o) |
uint64 | nextEvent () const |
Next value of off at which to finish() sum & compare. | |
INLINE void | setNextEvent (PartialMatchQueue *matches, uint64 newNextEvent) |
Move x's position in the queue depending on the new value of its nextEvent. | |
size_t | blockOffset () const |
Offset in buf of start of current MD5 block. | |
void | setBlockOffset (size_t b) |
size_t | blockNumber () const |
Number of block in file, i.e. | |
void | setBlockNumber (size_t b) |
FilePart * | file () const |
File whose sums matched so far. | |
void | setFile (FilePart *f) |
PartialMatch * | next () const |
Next in list, or null. | |
Friends | |
class | MkTemplate::PartialMatchQueue |
Detailed Description
One object for each offset in image where any file /might/ match.Class interface is tailored towards mktemplate's needs, hence the unusual methods...
Member Function Documentation
uint64 MkTemplate::PartialMatch::startOffset | ( | ) | const [inline] |
Offset in image at which this match starts.
void MkTemplate::PartialMatch::setStartOffset | ( | uint64 | o | ) | [inline] |
uint64 MkTemplate::PartialMatch::nextEvent | ( | ) | const [inline] |
Next value of off at which to finish() sum & compare.
INLINE void MkTemplate::PartialMatch::setNextEvent | ( | PartialMatchQueue * | matches, | |
uint64 | newNextEvent | |||
) |
Move x's position in the queue depending on the new value of its nextEvent.
Uses linear search.
size_t MkTemplate::PartialMatch::blockOffset | ( | ) | const [inline] |
Offset in buf of start of current MD5 block.
void MkTemplate::PartialMatch::setBlockOffset | ( | size_t | b | ) | [inline] |
size_t MkTemplate::PartialMatch::blockNumber | ( | ) | const [inline] |
Number of block in file, i.e.
index into file()->sums[]
void MkTemplate::PartialMatch::setBlockNumber | ( | size_t | b | ) | [inline] |
FilePart* MkTemplate::PartialMatch::file | ( | ) | const [inline] |
File whose sums matched so far.
void MkTemplate::PartialMatch::setFile | ( | FilePart * | f | ) | [inline] |
PartialMatch* MkTemplate::PartialMatch::next | ( | ) | const [inline] |
Next in list, or null.
Friends And Related Function Documentation
friend class MkTemplate::PartialMatchQueue [friend] |
The documentation for this class was generated from the following file:
Generated on Tue Sep 23 14:27:43 2008 for jigdo by
