[][src]Function safe_app::ipc::req::containers_from_repr_c

pub unsafe fn containers_from_repr_c(
    raw: *const ContainerPermissions,
    len: usize
) -> Result<HashMap<String, BTreeSet<Permission>, RandomState>, IpcError>

Constructs the object from a raw pointer.

After calling this function, the raw pointer is owned by the resulting object.

Safety

This function is unsafe as there is no guarantee that the given pointer is valid for len elements, nor whether the lifetime inferred is a suitable lifetime for the returned slice.

This function also assumes the provided ffi::ContainerPermissions is valid, i.e. it was constructed by calling containers_into_vec.