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

Function native_c_string

packages/server/src/transport/webrtc.rs:1603–1608  ·  view source on GitHub ↗
(value: *const i8)

Source from the content-addressed store, hash-verified

1601}
1602
1603unsafe fn native_c_string(value: *const i8) -> Option<String> {
1604 if value.is_null() {
1605 return None;
1606 }
1607 CStr::from_ptr(value).to_str().ok().map(ToOwned::to_owned)
1608}
1609
1610unsafe fn take_native_error(error: *mut i8, fallback: &str) -> AppError {
1611 if error.is_null() {

Callers 1

handle_encoded_frameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected