Searched refs:elem_size (Results 1 – 1 of 1) sorted by relevance
30 elem_size: u32, field38 .field("elem_size", &self.elem_size) in fmt()45 pub fn new(elem_size: u32, max_entries: u32) -> Self { in new()46 debug_assert!(elem_size % 8 == 0); in new()47 let total_size = elem_size * max_entries; in new()49 ArrayMapData { elem_size, data } in new()56 let start = index * self.elem_size; in index()57 &self.data[start as usize..(start + self.elem_size) as usize] in index()63 let start = index * self.elem_size; in index_mut()64 &mut self.data[start as usize..(start + self.elem_size) as usize] in index_mut()[all …]