Lines Matching refs:elem_size
30 elem_size: u32, field
38 .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()
73 let elem_size = round_up(attr.value_size as usize, 8); in new() localVariable
74 let data = ArrayMapData::new(elem_size as u32, attr.max_entries); in new()
102 if value.len() > self.data.elem_size as usize { in update_elem()