Skip to main content

Module utils

Module utils 

Source
Expand description

Shared utilities used by other modules in this crate and by downstream crates that build on top of the apple-cf bridge.

  • completion — sync/async completion-handler bridges
  • four_char_codeFourCharCode (used by pixel-format / OSType codes)
  • ffi_string — owned-string helpers around bridge fns that return heap-allocated C strings
  • panic_safe — wrappers that catch panics inside extern "C" callbacks so they don’t unwind across the FFI boundary

Re-exports§

pub use four_char_code::FourCharCode;

Modules§

completion
Synchronous completion utilities for async FFI callbacks
ffi_string
FFI string utilities
four_char_code
Minimal FourCharCode implementation for pixel formats and color conversions
panic_safe
Panic-safety helpers for the C ABI boundary.