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

Function cake_set_cache_dir

cake-mobile/src/lib.rs:535–538  ·  view source on GitHub ↗
(path: *const c_char)

Source from the content-addressed store, hash-verified

533/// `path` must be a valid, non-null, NUL-terminated C string.
534#[no_mangle]
535pub unsafe extern "C" fn cake_set_cache_dir(path: *const c_char) {
536 let path = CStr::from_ptr(path).to_string_lossy().into_owned();
537 set_cache_dir(path);
538}
539
540/// # Safety
541/// `s` must be either null or a pointer previously returned by `cake_start_worker` / `cake_get_worker_status`.

Callers 1

setCacheDirMethod · 0.85

Calls 1

set_cache_dirFunction · 0.85

Tested by

no test coverage detected