Use pinned memory for entry verify (#7440)

This commit is contained in:
sakridge
2019-12-12 10:36:27 -08:00
committed by GitHub
parent c4f3bb9b67
commit dd54fff978
3 changed files with 49 additions and 13 deletions

View File

@ -181,6 +181,13 @@ impl<T: Clone + Default + Sized> PinnedVec<T> {
self.pinnable = true;
}
pub fn copy_from_slice(&mut self, data: &[T])
where
T: Copy,
{
self.x.copy_from_slice(data);
}
pub fn from_vec(source: Vec<T>) -> Self {
Self {
x: source,