prevent reading beyond a certain position no argument removes the limit
| 694 | //! prevent reading beyond a certain position |
| 695 | //! no argument removes the limit |
| 696 | bool SetLimit(uint64_t nPos = std::numeric_limits<uint64_t>::max()) { |
| 697 | if (nPos < m_read_pos) |
| 698 | return false; |
| 699 | nReadLimit = nPos; |
| 700 | return true; |
| 701 | } |
| 702 | |
| 703 | template<typename T> |
| 704 | CBufferedFile& operator>>(T&& obj) { |
no outgoing calls