Lines Matching refs:size_of
132 /// Represents the actual buffer size as `cap` times `size_of::<T>` bytes.
202 core::mem::size_of::<T>() == 0
569 /// - `ptr` must point to memory with a size of at least `size_of::<T>() * capacity` bytes.
580 // SAFETY: By the safety requirements of this function, `capacity * size_of::<T>()` is
781 /// let elements_per_page = kernel::page::PAGE_SIZE / core::mem::size_of::<u32>();
826 let current_size = self.capacity() * core::mem::size_of::<T>();
827 let target_size = target_cap * core::mem::size_of::<T>();
1015 // - `ptr` points to memory with at least a size of `size_of::<T>() * len`,
1306 // - `ptr` is valid for reads of `len * size_of::<T>()` bytes,
1307 // - `buf.as_ptr()` is valid for writes of `len * size_of::<T>()` bytes,