rewind to a given reading position
| 528 | |
| 529 | // rewind to a given reading position |
| 530 | bool SetPos(uint64_t nPos) |
| 531 | { |
| 532 | nReadPos = nPos; |
| 533 | if (nReadPos + nRewind < nSrcPos) { |
| 534 | nReadPos = nSrcPos - nRewind; |
| 535 | return false; |
| 536 | } else if (nReadPos > nSrcPos) { |
| 537 | nReadPos = nSrcPos; |
| 538 | return false; |
| 539 | } else { |
| 540 | return true; |
| 541 | } |
| 542 | } |
| 543 | |
| 544 | bool Seek(uint64_t nPos) |
| 545 | { |
no outgoing calls
no test coverage detected