(ptr: *const c_char)
| 254 | } |
| 255 | |
| 256 | pub fn vm_load_string(ptr: *const c_char) -> AxResult<String> { |
| 257 | #[allow(clippy::unnecessary_cast)] |
| 258 | let bytes = vm_load_until_nul(ptr as *const u8)?; |
| 259 | String::from_utf8(bytes).map_err(|_| AxError::IllegalBytes) |
| 260 | } |
| 261 | |
| 262 | /// A read-only buffer in the VM's memory. |
| 263 | /// |
no outgoing calls
no test coverage detected