Given a starting offset and length, calculate the resulting slice array according to a descriptor array
#include <qvm/utils.h>
unsigned qvm_slice(unsigned offset, unsigned len, const struct qvm_slice_descriptor *desc, struct qvm_slice_result *slices)
For more information, see the Virtual Device Developer's Guide.
The number of slice result entries that were generated.