Returns the required alignment for a code image, if we allocate in a way that is not a system `mmap()` that naturally aligns it.
(&self)
| 870 | /// allocate in a way that is not a system `mmap()` that naturally |
| 871 | /// aligns it. |
| 872 | fn required_code_alignment(&self) -> usize { |
| 873 | self.custom_code_memory() |
| 874 | .map(|c| c.required_alignment()) |
| 875 | .unwrap_or(1) |
| 876 | } |
| 877 | |
| 878 | /// Loads a `CodeMemory` from the specified in-memory slice, copying it to a |
| 879 | /// uniquely owned mmap. |
no test coverage detected