9 SYSCALL_ERROR(PermissionDenied);
14 const size_t last = (offset + length - 1) / blockSize;
15 for (
size_t index = offset / blockSize; index <= last; ++index) {
16 const size_t location = index * blockSize;
17 uintptr_t page = m_FileBlocks.
lookup(location);
22 if (!m_BlockOffsets.tryReserve(m_BlockOffsets.
count() + 1)) {
23 SYSCALL_ERROR(OutOfMemory);
26 page = m_FileBlocks.
insert(location);
28 SYSCALL_ERROR(OutOfMemory);
31 ByteSet(
reinterpret_cast<void*
>(page), 0, blockSize);