Module page_iter_wrapper

Source
Expand description

Memory Page Iterator Wrapper Module

Provides a unified iteration interface across different page sizes, supporting address iteration for 4K, 2M, and 1G page sizes. The design is inspired by the Iterator Wrapper pattern, using an enum to unify the behavior of iterators for different page sizes.

Enums§

PageIterWrapper
Page Iterator Wrapper Enum

Constants§

PAGE_SIZE_1G
1GB page size constant (1,073,741,824 bytes)
PAGE_SIZE_2M
2MB page size constant (2,097,152 bytes)
PAGE_SIZE_4K
4K page size constant (4,096 bytes) and iterator type alias The size of a 4K page (4096 bytes).

Type Aliases§

PageIter1G
1GB page iterator type alias
PageIter2M
2MB page iterator type alias
PageIter4K
4K page size constant (4,096 bytes) and iterator type alias A [PageIter] for 4K pages.