return (it->chunk + it->chunk_offs);
}
+uint64_t Segment::get_iterator_valid_length(SegmentDataIterator* it)
+{
+ assert(it->sample_index <= (sample_count_ - 1));
+
+ return ((chunk_size_ - it->chunk_offs) / unit_size_);
+}
+
+
} // namespace data
} // namespace pv
void continue_sample_iteration(SegmentDataIterator* it, uint64_t increase);
void end_sample_iteration(SegmentDataIterator* it);
uint8_t* get_iterator_value(SegmentDataIterator* it);
+ uint64_t get_iterator_valid_length(SegmentDataIterator* it);
uint32_t segment_id_;
mutable recursive_mutex mutex_;