Struct bmk_linux::resultarray::ResultArray
source · [−]pub struct ResultArray<T: Sized> { /* private fields */ }
Expand description
A pre-allocated, mlocked, and prefaulted array of the given size and type for storing results. This is useful to the storage of results from interfering with measurements.
Implementations
Create a new ResultArray
with the given number of elements.
Panics
- If unable to create the array.
- If the size of the array is not a multiple of the page size.
- If the length of the array is longer than
isize::MAX
.