prevent reading beyond a certain position no argument removes the limit
| 544 | // prevent reading beyond a certain position |
| 545 | // no argument removes the limit |
| 546 | bool SetLimit(uint64_t nPos = (uint64_t)(-1)) { |
| 547 | if (nPos < nReadPos) |
| 548 | return false; |
| 549 | nReadLimit = nPos; |
| 550 | return true; |
| 551 | } |
| 552 | |
| 553 | template<typename T> |
| 554 | CBufferedFile& operator>>(T& obj) { |
no outgoing calls
no test coverage detected