| 725 | } |
| 726 | |
| 727 | void CheckedFile::getCurrentPageAndOffset( uint64_t &page, size_t &pageOffset, OffsetMode omode ) |
| 728 | { |
| 729 | const uint64_t pos = position( omode ); |
| 730 | |
| 731 | if ( omode == Physical ) |
| 732 | { |
| 733 | page = pos >> physicalPageSizeLog2; |
| 734 | pageOffset = static_cast<size_t>( pos & physicalPageSizeMask ); |
| 735 | } |
| 736 | else |
| 737 | { |
| 738 | page = pos / logicalPageSize; |
| 739 | pageOffset = static_cast<size_t>( pos - page * logicalPageSize ); |
| 740 | } |
| 741 | } |
| 742 | |
| 743 | void CheckedFile::readPhysicalPage( char *page_buffer, uint64_t page ) |
| 744 | { |
nothing calls this directly
no test coverage detected