MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / cstring

Function cstring

packages/server/src/camera.rs:257–259  ·  view source on GitHub ↗
(name: &str, value: &str)

Source from the content-addressed store, hash-verified

255}
256
257fn cstring(name: &str, value: &str) -> Result<CString, AppError> {
258 CString::new(value).map_err(|_| AppError::bad_request(format!("{name} contains NUL byte.")))
259}
260
261fn launch_with_injector(
262 udid: &str,

Callers 4

native_start_cameraFunction · 0.85
native_statusFunction · 0.85
native_switch_cameraFunction · 0.85
native_stop_cameraFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected