pub fn read_allocated(&mut self, offset: usize, data: &mut [T]) -> usize
            where T: Copy {
        let (size_1, offset, data) = {
            let slice = self.get_allocated(offset, data.len());
            data[..slice.len()].copy_from_slice(slice);
            (slice.len(), offset + slice.len(), &mut data[slice.len()..])
        };
        let size_2 = {
            let slice = self.get_allocated(offset, data.len());
            data[..slice.len()].copy_from_slice(slice);
            slice.len()
        };
        size_1 + size_2
    }
/// Read as many elements from allocated buffer elements into the given slice
/// starting at the given offset past the first allocated element, and return
/// the amount read.
// #[must_use]
Read as many elements from allocated buffer elements into the given slice
starting at the given offset past the first allocated element, and return
the amount read.
Read as many elements from allocated buffer elements into the given slice starting at the given offset past the first allocated element and return the amount read .
pub fn read_allocated(&mut self, offset: usize, data: &mut [T]) -> usize
            where T: Copy {
        let (size_1, offset, data) = {
            let slice = self.get_allocated(offset, data.len());
            data[..slice.len()].copy_from_slice(slice);
            (slice.len(), offset + slice.len(), &mut data[slice.len()..])
        };
        let size_2 = {
            let slice = self.get_allocated(offset, data.len());
            data[..slice.len()].copy_from_slice(slice);
            slice.len()
        };
        size_1 + size_2
    }
pub fn read_allocated ( & mut self , offset : usize , data : & mut [ T ] ) -> usize where T : Copy { let ( size_1 , offset , data ) = { let slice = self . get_allocated ( offset , data . len ( ) ) ; data [ .. slice . len ( ) ] . copy_from_slice ( slice ) ; ( slice . len ( ) , offset + slice . len ( ) , & mut data [ slice . len ( ) .. ] ) } ; let size_2 = { let slice = self . get_allocated ( offset , data . len ( ) ) ; data [ .. slice . len ( ) ] . copy_from_slice ( slice ) ; slice . len ( ) } ; size_1 + size_2 }
Read as many elements from allocated buffer elements into the given slice
starting at the given offset past the first allocated element, and return
the amount read.
Read as many elements from allocated buffer elements into the given slice starting at the given offset past the first allocated element and return the amount read .
&mut self
offset
usize
data
&mut [T]
&mut self
offset
usize
data
&mut [T]
[must_use]
None