pub(crate) fn validate_query_info(
query_info: &virtio_snd_query_info,
len: usize,
) -> Result<Range<usize>, u32>Expand description
Validates a virtio_snd_query_info request against the number of available items.
Returns the index range of items to read, or VIRTIO_SND_S_BAD_MSG if start_id + count
exceeds len or overflows usize.