SanityCheckAsmap

Check that the asmap is well formed for the given address size.

Synopsis

Declared in <util/asmap.h>

bool
SanityCheckAsmap(
    std::span<std::byte const> asmap,
    int bits);

Return Value

true if the asmap is sane for that address size.

Parameters

NameDescription
asmapThe encoded asmap data to validate.
bitsThe number of address bits the asmap must cover.