Crate memory_range

source ·
Expand description

The MemoryRange type, which represents a 4KB-page-aligned byte range of memory, plus algorithms operating on the type.

Structs§

Enums§

Functions§

  • Similar to flatten_ranges, but also requires that ranges are equivalent via the passed in closure. This can be useful when merging memory ranges with associated tags.
  • Takes a sequence of memory ranges, sorted by their start address, and returns an iterator over the flattened ranges, where adjacent ranges are merged and deduplicated.
  • Returns an iterator over memory ranges that are in both left and right.
  • Returns an iterator over the ranges in left that are not in right.
  • Returns an iterator that computes the overlapping state of the ranges in left and right.