Taking a quick look at a branch of that hash tag, the Reset function simply sets d_nitems = 0. There are 4 helper functions within the Skip Head block of old that are not in the current one; namely setting the number of items to skip, checking how many items are to be skipped, checking how many items have currently been skipped, and resetting the block. The code below is from the hash tag given, and should be trivial to implement into the current block (the variable names are even still the same).
void
gr_skiphead::set_nitems_to_skip(uint64_t nitems_to_skip)
{
d_nitems_to_skip = nitems_to_skip;
reset();
}
uint64_t
gr_skiphead::nitems_to_skip() const
{
return d_nitems_to_skip;
}
uint64_t
gr_skiphead::nitems_skiped() const
{
return d_nitems;
}
void
gr_skiphead::reset()
{
d_nitems = 0;
}
Michael Berman