| 34 | void printBuffer(std::ostream& out, const char* buffer, uint64_t length); |
| 35 | |
| 36 | class PositionProvider { |
| 37 | private: |
| 38 | std::list<uint64_t>::const_iterator position_; |
| 39 | |
| 40 | public: |
| 41 | PositionProvider(const std::list<uint64_t>& positions); |
| 42 | uint64_t next(); |
| 43 | uint64_t current(); |
| 44 | }; |
| 45 | |
| 46 | /** |
| 47 | * A subclass of Google's ZeroCopyInputStream that supports seek. |