rewind to a given reading position
| 1462 | |
| 1463 | // rewind to a given reading position |
| 1464 | bool SetPos(uint64_t nPos) { |
| 1465 | nReadPos = nPos; |
| 1466 | if (nReadPos + nRewind < nSrcPos) { |
| 1467 | nReadPos = nSrcPos - nRewind; |
| 1468 | return false; |
| 1469 | } else if (nReadPos > nSrcPos) { |
| 1470 | nReadPos = nSrcPos; |
| 1471 | return false; |
| 1472 | } else { |
| 1473 | return true; |
| 1474 | } |
| 1475 | } |
| 1476 | |
| 1477 | bool Seek(uint64_t nPos) { |
| 1478 | long nLongPos = nPos; |
no outgoing calls
no test coverage detected