gasp_walk_count()

Return the number of successful returns of gasp_walk_next(), assuming the same length was passed to gasp_walk_init()

Synopsis:

#include <qvm/gasp.h>
unsigned gasp_walk_count(const struct guest_system *gsp,
                         uint64_t max_length,
                         unsigned flags)

Arguments:

gsp
A pointer to the guest system.
max_length
The maximum length of each entry, in bytes.
flags
GWS_* flags.

Library:

Provided by qvm; no external library is required.

Description:

Use this function to find out how much memory you will need to store the memory information provided by gasp_walk_next().

Returns:

The number of RAM/ROM entries found.