| 69 | } |
| 70 | |
| 71 | void AssertPosAndSize(uint64_t pos, uint64_t size) const |
| 72 | { |
| 73 | if constexpr (WithExceptions) |
| 74 | { |
| 75 | if (!GoodPosAndSize(pos, size)) |
| 76 | MYTHROW(Reader::SizeException, (pos, size, Size())); |
| 77 | } |
| 78 | else |
| 79 | { |
| 80 | ASSERT(GoodPosAndSize(pos, size), (pos, size, Size())); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | char const * m_pData; |
| 85 | size_t m_size; |