File size: 278 Bytes
1ce325b
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "count_records.hh"
#include "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