sakharamg's picture
Uploading all files
158b61b
raw
history blame contribute delete
302 Bytes
#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