File size: 302 Bytes
fd49381 |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#include "util/stream/count_records.hh"
#include "util/stream/chain.hh"
namespace util { namespace stream {
void CountRecords::Run(const ChainPosition &position) {
for (Link link(position); link; ++link) {
*count_ += link->ValidSize() / position.GetChain().EntrySize();
}
}
}} // namespaces
|