class MemRangeTable

Defined at line 63 of file ../../zircon/kernel/arch/x86/phys/boot-shim/legacy-mem-config.h

MemRangeTable allows iterating over all memory ranges specified in a

given ZBI item.

Memory ranges may be represented in multiple input formats in the

ZBI. The class allows the various formats to be uniformly handled.

The iterator can be used as follows:

```

MemRangeTable container = MemRangeTable::FromItem(item);

// Process all the items.

for (zbi_mem_range_t range : container) {

Process(range);

}

```

Public Methods

iterator begin ()

Defined at line 71 of file ../../zircon/kernel/arch/x86/phys/boot-shim/legacy-mem-config.h

iterator end ()

Defined at line 72 of file ../../zircon/kernel/arch/x86/phys/boot-shim/legacy-mem-config.h

fit::result<std::string_view, MemRangeTable> FromSpan (uint32_t zbi_type, zbitl::ByteView payload)

Create a MemRangeTable from the given memory range, assumed to be of type `zbi_type`.

Defined at line 108 of file ../../zircon/kernel/arch/x86/phys/boot-shim/legacy-mem-config.cc

size_t size ()

Return the number of memory ranges in the table.

Defined at line 150 of file ../../zircon/kernel/arch/x86/phys/boot-shim/legacy-mem-config.cc

zbi_mem_range_t operator[] (size_t n)

Get the n'th item. Input must be strictly less than the result of `size()`.

Defined at line 145 of file ../../zircon/kernel/arch/x86/phys/boot-shim/legacy-mem-config.cc

Records