struct Range
Defined at line 165 of file ../../zircon/kernel/phys/lib/memalloc/include/lib/memalloc/range.h
A memory range type that is layout-compatible to zbi_mem_range_t, but with
the benefit of being able to use allocated types.
Public Members
uint64_t addr
uint64_t size
Type type
Public Methods
uint64_t end ()
The end of the memory range. This method may only be called if addr + size
has been normalized to not overflow.
Defined at line 172 of file ../../zircon/kernel/phys/lib/memalloc/include/lib/memalloc/range.h
Range AlignTo (uint64_t alignment)
Returns a new range aligned outward to the given alignment: The start
address is rounded down, and the end address is rounded up.
Defined at line 176 of file ../../zircon/kernel/phys/lib/memalloc/include/lib/memalloc/range.h
Range AlignTo (uint64_t alignment)
Returns a new range aligned outward to the given alignment: The start
address is rounded down, and the end address is rounded up.
Defined at line 176 of file ../../zircon/kernel/phys/lib/memalloc/include/lib/memalloc/range.h
bool operator== (const Range & other)
Defined at line 186 of file ../../zircon/kernel/phys/lib/memalloc/include/lib/memalloc/range.h
bool operator!= (const Range & other)
Defined at line 189 of file ../../zircon/kernel/phys/lib/memalloc/include/lib/memalloc/range.h
bool operator< (const Range & other)
Gives a lexicographic order on Range.
Defined at line 192 of file ../../zircon/kernel/phys/lib/memalloc/include/lib/memalloc/range.h
bool IntersectsWith (const Range & other)
Defined at line 196 of file ../../zircon/kernel/phys/lib/memalloc/include/lib/memalloc/range.h