MCPcopy Create free account
hub / github.com/evilsocket/cake / cake_free_string

Function cake_free_string

cake-mobile/src/lib.rs:543–547  ·  view source on GitHub ↗
(s: *mut c_char)

Source from the content-addressed store, hash-verified

541/// `s` must be either null or a pointer previously returned by `cake_start_worker` / `cake_get_worker_status`.
542#[no_mangle]
543pub unsafe extern "C" fn cake_free_string(s: *mut c_char) {
544 if !s.is_null() {
545 drop(CString::from_raw(s));
546 }
547}
548
549async fn run_text_worker(ctx: &mut Context) -> String {
550 log_mobile(&format!("[cake-mobile] text model arch: {:?}", ctx.text_model_arch));

Callers 2

startWorkerMethod · 0.85
getWorkerStatusMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected