prevent reading beyond a certain position no argument removes the limit
| 557 | // prevent reading beyond a certain position |
| 558 | // no argument removes the limit |
| 559 | bool SetLimit(uint64_t nPos = (uint64_t)(-1)) |
| 560 | { |
| 561 | if (nPos < nReadPos) |
| 562 | return false; |
| 563 | nReadLimit = nPos; |
| 564 | return true; |
| 565 | } |
| 566 | |
| 567 | template <typename T> |
| 568 | CBufferedFile& operator>>(T& obj) |
no outgoing calls
no test coverage detected