Clear all data structures in this `DataDescription`.
(&mut self)
| 87 | |
| 88 | /// Clear all data structures in this `DataDescription`. |
| 89 | pub fn clear(&mut self) { |
| 90 | self.init = Init::Uninitialized; |
| 91 | self.function_decls.clear(); |
| 92 | self.data_decls.clear(); |
| 93 | self.function_relocs.clear(); |
| 94 | self.data_relocs.clear(); |
| 95 | self.custom_segment_section = None; |
| 96 | self.align = None; |
| 97 | self.used = false; |
| 98 | } |
| 99 | |
| 100 | /// Define a zero-initialized object with the given size. |
| 101 | pub fn define_zeroinit(&mut self, size: usize) { |
no outgoing calls