INNER CODE UNIT · Rust
locale_string
denialwm/denial · compositor/flutter-engine/src/lib.rs:561
fn locale_string(field: &'static str, value: &str) -> Result<CString, EngineError> {
CString::new(value).map_err(|_| EngineError::LocaleContainsNul(field))
}
impl RunningEngine {
pub(crate) fn raw_handle(&self) -> sys::FlutterEngine {
self.handle
}
/// Installs Denial's synchronous preflight for external-texture resolves.
/// Returning `false` promises that the immediately following standard
/// texture callback will not issue GL calls, allowing the engine to retain
/// Ganesh's command batch and state cache.
///
/// # Safety
///
/// `user_data` must remain valid until engine shutdown and the callback
/// must not unwind across the C ABI.