(self, len: usize)
| 133 | } |
| 134 | |
| 135 | pub fn get_as_mut_slice(self, len: usize) -> AxResult<&'static mut [T]> { |
| 136 | check_region( |
| 137 | self.address(), |
| 138 | Layout::array::<T>(len).unwrap(), |
| 139 | Self::ACCESS_FLAGS, |
| 140 | )?; |
| 141 | Ok(unsafe { slice::from_raw_parts_mut(self.0, len) }) |
| 142 | } |
| 143 | |
| 144 | pub fn get_as_mut_null_terminated(self) -> AxResult<&'static mut [T]> |
| 145 | where |
no test coverage detected