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