prevent reading beyond a certain position no argument removes the limit
| 680 | // prevent reading beyond a certain position |
| 681 | // no argument removes the limit |
| 682 | bool SetLimit(uint64_t nPos = (uint64_t)(-1)) { |
| 683 | if (nPos < nReadPos) |
| 684 | return false; |
| 685 | nReadLimit = nPos; |
| 686 | return true; |
| 687 | } |
| 688 | |
| 689 | template<typename T> |
| 690 | CBufferedFile& operator>>(T&& obj) { |
no outgoing calls
no test coverage detected