| 227 | } |
| 228 | |
| 229 | bool isPageAlignedAddr(const void* addr) noexcept { |
| 230 | return reinterpret_cast<uintptr_t>(addr) % getPageSize() == 0; |
| 231 | } |
| 232 | |
| 233 | /* returns true with the file's mode. false if the file does not exist. |
| 234 | * throws system_error for all other errors */ |