Expand description
FFI string utilities
Helper functions for retrieving strings from C/Objective-C APIs that use buffer-based string retrieval patterns.
Constants§
- DEFAULT_
BUFFER_ SIZE - Default buffer size for FFI string retrieval
- SMALL_
BUFFER_ SIZE - Smaller buffer size for short strings (e.g., device IDs, stream names)
Functions§
- ffi_
string_ ⚠from_ buffer - Retrieves a string from an FFI function that writes to a buffer.
- ffi_
string_ ⚠from_ buffer_ or_ empty - Same as
ffi_string_from_bufferbut returns an empty string on failure instead ofNone.