prevent reading beyond a certain position no argument removes the limit
| 1490 | // prevent reading beyond a certain position |
| 1491 | // no argument removes the limit |
| 1492 | bool SetLimit(uint64_t nPos = (uint64_t)(-1)) { |
| 1493 | if (nPos < nReadPos) |
| 1494 | return false; |
| 1495 | nReadLimit = nPos; |
| 1496 | return true; |
| 1497 | } |
| 1498 | |
| 1499 | template<typename T> |
| 1500 | CBufferedFile& operator>>(T& obj) { |
no outgoing calls
no test coverage detected