prevent reading beyond a certain position no argument removes the limit
| 606 | //! prevent reading beyond a certain position |
| 607 | //! no argument removes the limit |
| 608 | bool SetLimit(uint64_t nPos = std::numeric_limits<uint64_t>::max()) { |
| 609 | if (nPos < m_read_pos) |
| 610 | return false; |
| 611 | nReadLimit = nPos; |
| 612 | return true; |
| 613 | } |
| 614 | |
| 615 | template<typename T> |
| 616 | BufferedFile& operator>>(T&& obj) { |
no outgoing calls