diff options
Diffstat (limited to 'include/llfio/v2.0/detail/impl/windows/map_handle.ipp')
-rw-r--r-- | include/llfio/v2.0/detail/impl/windows/map_handle.ipp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llfio/v2.0/detail/impl/windows/map_handle.ipp b/include/llfio/v2.0/detail/impl/windows/map_handle.ipp index 7eae7867..dd17d754 100644 --- a/include/llfio/v2.0/detail/impl/windows/map_handle.ipp +++ b/include/llfio/v2.0/detail/impl/windows/map_handle.ipp @@ -887,6 +887,7 @@ result<span<map_handle::buffer_type>> map_handle::prefetch(span<buffer_type> reg { return span<map_handle::buffer_type>(); } + static_assert(sizeof(WIN32_MEMORY_RANGE_ENTRY) == sizeof(buffer_type), "WIN32_MEMORY_RANGE_ENTRY is not the same size as a buffer_type!"); auto wmre = reinterpret_cast<PWIN32_MEMORY_RANGE_ENTRY>(regions.data()); if(PrefetchVirtualMemory_(GetCurrentProcess(), regions.size(), wmre, 0) == 0) { |